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 -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

asp.net - call stack missing info on mono with apache and mod_mono -