you have to unbind('mouseenter').unbind('mouseleave')

- ricardo

On Jan 15, 1:15 pm, ezod <pured...@gmail.com> wrote:
> Hi all,
>
> I tried the following:
>
> // bind hover (works!)
> $("foobar").hover(
>   function () {
>     //do something
>   },
>   function () {
>     //do something else
>   }
> );
>
> // unbind hover (works!)
> $("foobar").unbind("mouseover").unbind("mouseleave");
>
> // rebind hober (works not!)
> $("foobar").hover(
>   function () {
>     //do something
>   },
>   function () {
>    //do something else
>   }
> );
>
> So after unbinding the event I can´t bind the hover function again

Reply via email to