I've tried that, and jQuery Complains about the function "one" not existing.
Yes, i'm using the latest version of jQuery too.
Klaus Hartl wrote:
>
> Philip Pryce schrieb:
>> Is there some way of making a bind function so that, one you click away
>> from
>> an element (say drop down menu) it disapears. So say i've clicked a
>> button
>> and a menus poped up, i then taken a look at the menu and i dont need it
>> again, so i click on some other part of the page and the menu hides it
>> self
>> again. Any ideas?
>
> Philip, there is the "one" function, that does exactly what you need.
>
> $('#target').one('click', function() {
> ...
> });
>
>
>
>
> -- Klaus
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
--
View this message in context:
http://www.nabble.com/onClickOut--tf3341987.html#a9295488
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/