107
rated 0 times
[
114]
[
7]
/ answers: 1 / hits: 37530
/ 15 Years ago, mon, september 14, 2009, 12:00:00
I have a floating div that gets displayed, and I want it to be hidden when the user clicks off the div. This would be similar to the .hover() function callback when hovering off an element. Only I want to do this for click.
I tried just setting a click event for the body, which would hide the div, but that gave unexpected results.
Anyone have ideas on how I could easily do this?
More From » jquery