[jQuery] How to pass mouse events around in a document?
I have a drop down menu.
<script>
$(document).ready ( function () {
$('#mymenu').toggle( function () { openMe(); }, function ()
{closeMe(); } );
} );
</script>
....
<div id=mymenuoptions style="display:none;">
....
</div>
<div id=mymenu>Menu</div>
.....
But I need to somehow catch a click anywhere else, close this menu and
then do what ever else I clicked???
$(document).click(....?);
Anyone have an example?
thanks!
dn