$(document).click(function(evt) { var target = evt.currentTarget; var inside = $(\".menuWraper\"); if (target != inside) { alert(\"bleep\");
I do not think document fires the click event. Try using the body element to capture the click event. Might need to check on that...