jQuery: If user clicks out of div
- by Paul Knopf
I am creating a popup in query. All is well with the popup on hover. I made it see a timer starts when user's mouse leaves the div to close it. If he enters the div again before the timer is done, then the timer is cleared.
This is fine, but what if a user clicks out of the div? I want that to also close the div. The only problem is that I don't…