[jQuery] Re: how could I unbind .hover() ?

2007-06-22 Thread Brandon Aaron
The hover bind a mouseover and mouseout event and you can remove them by doing the following: $('div').unbind('mouseover').unbind('mouseout'); -- Brandon Aaron On 6/22/07, March [EMAIL PROTECTED] wrote: i did something like this: $('div').hover(function(){ // do something },function(){

[jQuery] Re: how could I unbind .hover() ?

2007-06-22 Thread Erik Beeson
Doh! And I knew that too! 6am is too late to be trying to answer questions. My second suggestion would still work though. And I reiterate that it is probably the ideal solution. Thanks for the heads up. --Erik On 6/22/07, Brandon Aaron [EMAIL PROTECTED] wrote: Unfortunately this won't work

[jQuery] Re: how could I unbind .hover() ?

2007-06-22 Thread Brandon Aaron
Unfortunately this won't work when using the hover helper method. The hover helper method assigns an anonymous method to both the mouseover and mouseout events. This anonymous function then decides if it should fire the given mouseover or mouseout functions provided to .hover(). -- Brandon Aaron

[jQuery] Re: how could I unbind .hover() ?

2007-06-22 Thread March
thank you all! :D On 6/22/07, Erik Beeson [EMAIL PROTECTED] wrote: Doh! And I knew that too! 6am is too late to be trying to answer questions. My second suggestion would still work though. And I reiterate that it is probably the ideal solution. Thanks for the heads up. --Erik On