I tried unbind('hover") but it didn't do anything. I figured out eventually that I use .unbind('mouseenter').unbind('mouseleave') then it has the desired effect of reversing the .bind('hover'). Would seem to be more intuitive if I could just use .unbind("hover") though.
On May 2, 2:26 pm, BlueCockatoo <[EMAIL PROTECTED]> wrote: > Here's some info on how event binding works in > jQuery:http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_st... > > But specifically you can use .hover() and .unbind("hover") on your > element to bind and unbind. > > On May 2, 11:41 am, jr <[EMAIL PROTECTED]> wrote: > > > I have attached the hover event to a <div> element and it works fine. > > But how do I dynamically remove and add it again? Once it's working I > > cant seem to find a way in javascript to stop it again. I've tried > > calling 'hover' again on the same element with empty function > > callbacks, but it doesn't seem to have any effect. > > > thanks.