Ruby on Rails Friday, January 19, 2018

Because .hide() does not remove element, but hides it. Use .remove() if you want to remove element from the DOM tree.


On Sat, Jan 20, 2018, at 05:34, fugee ohu wrote:
I hid a div in a form using jquery hide element, it's no longer visible on the page view, but it still shows up in source Why?


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment