This is the code I have right now with jQuery. 1.fiddle. What I want is to create the same scenario without jQuery. This is where I ended up. 2. fiddle.
Can anyone point out what I have done wrong here?? (As far as I can think of, my problem is with the CSS Selectors)
Thank you.
The is no
.hide()method in HTML. To hide an element, set thedisplaystyle tonone.Also, the original CSS can work without jQuery.