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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -