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+unsubscr...@googlegroups.com.>  To post to 
> this group, send email to rubyonrails-
>  t...@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[1].>
>   For more options, visit https://groups.google.com/d/optout.


Links:

  1. 
https://groups.google.com/d/msgid/rubyonrails-talk/4b14c857-9531-490c-85df-e2522fc44ae4%40googlegroups.com?utm_medium=email&utm_source=footer

-- 
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+unsubscr...@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/1516430450.2538923.1241870280.0B2050AC%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to