i have a div and an icon, i connected the 2 with toggle()
<img .... onclick=" jQuery('#my_div').toggle();" >
it works great, but how do i hide the div (once it's visible) when other area on the screen is clicked (besides the icon)? basicly what i need is <div id= 'my_div' ... onfocusout=jQuery('#my_div').hide();" >
but looks like focus events don't work on divs? i can't figure it out, please help