div hidden but still showing up in source

13 views
Skip to first unread message

fugee ohu

unread,
Jan 19, 2018, 10:34:35 PM1/19/18
to Ruby on Rails: Talk
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?

Rolandas Barysas

unread,
Jan 20, 2018, 2:33:49 AM1/20/18
to rubyonra...@googlegroups.com
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-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages