problem between parent and child DIV. when u click on child div will show up same as parent div. i want child div not follow parent div action. i tried stopPropagation() is not work or maybe im confuse.
html code:
<div class="innerbox">
<div id="button"></div>
</div>
jQuery code:
<script type="text/javascript">
//<![CDATA[
function ShowHide(d){
$("div#button").click(function(e) {
e.stopPropagation();
return;
});
//$(".innerbox").click(function(e) {
jQuery(d).animate({"height": "toggle"}, {
duration: 500,
complete: function() {
//add action after complete action...
}
});
//});
}
//]]>
</script>