Re: [jQuery] Removing a click handler

2006-09-07 Thread Jörn Zaefferer
Brandon Aaron wrote: > You should just be able to say > > $('#mydiv').unclick(myfunction) > Or you just use $('#mydiv').unclick() without any arguments, removing all handlers for that event. That way you don't have to bother saving a handler reference. -- Jörn ___

Re: [jQuery] Removing a click handler

2006-09-07 Thread Will Jessup
Or can do var yoda = function() { my click action } ; //onload $('#mydiv').bind("click", yoda); //whenever $('#mydiv').unbind("click", yoda); > You should just be able to say > > $('#mydiv').unclick(myfunction) > > Brandon > > On 9/7/06, Sam <[EMAIL PROTECTED]> wrote: > >> Once a handler is a

Re: [jQuery] Removing a click handler

2006-09-07 Thread Brandon Aaron
You should just be able to say $('#mydiv').unclick(myfunction) Brandon On 9/7/06, Sam <[EMAIL PROTECTED]> wrote: > > > Once a handler is assigned > > $('#mydiv').click(myfunction); > > How can I remove the event handler at a later time? > > Sam > > ___

[jQuery] Removing a click handler

2006-09-07 Thread Sam
Once a handler is assigned   $('#mydiv').click(myfunction);   How can I remove the event handler at a later time?   Sam   ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/