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.To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4b14c857-9531-490c-85df-e2522fc44ae4%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment