Saturday, 15 September 2012

javascript - how to make div toggle onclick, child div(s) have no id's -


How do I type javascript / jQuery which hides a particular developer onclick and appears to other devices.

  & lt; Div id = "foo" & gt; & Lt; Div & gt; & Lt; / Div & gt; & Lt; Div & gt; B & lt; / Div & gt; & Lt; Div & gt; C & lt; / Div & gt; & Lt; / Div & gt;   

  $ ('#foo & gt; ; ('Click', function) ($) ($) (this) .hide (); $ (this) .siblings (). Show ();})   



No comments:

Post a Comment