Why doesn't this event unbind using jQuery? -


i have seen similar questions can't figure out doing wrong here. dropdown shown after ajax call completes succesfully want hide when user clicks anywhere. remove event though because there no need hide if hidden.

        dropdown.slidedown('fast');         $(document).bind('click.test', function() {             alert('click');             dropdown.slideup('fast');             $(document).unbind('click.test');         }); 

any thoughts???

you can call one method instead.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -