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
Post a Comment