Hey.
I have a big DIV called #bigDiv. In this div I have other elements like menus and images.
I want jQuery to toggle the #bigDiv every time user clicks the #bigDiv NOT other elements (which are parts of this div). How to do this?
For example:
index.html:
<div id="bigDiv">
<ul>
<li><a href="site">Site</a></li>
</ul>
jQuery:
$("#bigDiv").click(
function{
$("#bigDiv').toggle();
});
$("li").click(
function{
//do something here
});
At this point when I click li elemnt it still closes the main div. I tried with z-index, but it doesn't work since element is still a child of the main div.
Thanks.