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

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

xslt - Umbraco and EXSLT sets do not work -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -