Dialog box disappear, when clicking elsewhere on the document? (jQuery)

Posted by Martti Laine on Stack Overflow See other posts from Stack Overflow or by Martti Laine
Published on 2010-03-31T14:30:06Z Indexed on 2010/03/31 14:33 UTC
Read the original article Hit count: 291

Filed under:
|

Hello

I'm showing a hidden box with jQuery on link-click. Now the box disappears when clicking the link again, but how to make it so it kinda "loses focus" and hides. SO, when user click somewhere on document (but not the box itself), it disappears.

Suggestions?

Martti Laine

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about hide