When the user clicks on a .popup_link
, a little popup window is displayed and any other popup windows are removed:
$("a.popup_link").click(function(){
hide_all_popups()
make_popup($(this).id)
});
But I want it to also hide_all_popups()
when the user clicks anywhere else on the page thats not the popup. I need something like this:
$("[ANY]:not(a.popup_link)").click(function(){
hide_all_popups()
});
How do I do this?