blur i focusout użyte w taki sposób nie działają tzn. alert się nie wyświetla.
$('div.header_table').click(function() { $('div#categorySelection').slideToggle(); }).focusout(function(){ alert(11); $('div#categorySelection').hide(); });
$('div.header_table').click(function() { $('div#categorySelection').slideToggle(); }).focusout(function(){ alert(11); $('div#categorySelection').hide(); });
$('div.header_table').click(function(e) { e.preventDefault(); $('div#categorySelection').slideToggle(); $(document.body).one("click", function() { alert("This will be displayed only once."); }); });