<div id="pic">
<div id="left">
<img src="images/left.png" />
</div>
<div id="right">
<img src="images/right.png" />
</div>
</div>
I want to hide the div
with id
"right" when I click on the div
with id
"left"
Code I am using:
$("#left").click(function(){$("#right").hide();});
This is not working, what is the reason? And how will I achieve what I intend to?