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
___
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
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
>
> ___
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/