Hi
This is a part of my script which will close a popup:
- $("body:not(#popup)").click(function() {
- if(popup_zustand == true) {
- $("#popup").fadeOut("normal");
- $("#hintergrund").fadeOut("normal");
- popup_zustand = false;
- }
- });
You will find the problem on the first line. I want the popup to get closed whenever I click anywhere but not on the popup itself (that means #popup). The way I did, it closes the popup everytime, even when I click on #popup.
What am I doing wrong?