That's correct. If you want to "overwrite" the existing event you'll
have to "unbind" it first. To use your example:

$('##BLAH').click(function(){window.status+='a';});
$('##BLAH').unbind('click').click(function(){window.status+='b';});

Karl Rudd

On 10/17/07, nick <[EMAIL PROTECTED]> wrote:
>
> It seems that jquery is "appending" new events to any existing event
> handler. eg:
>
> $('##BLAH').click(function(){window.status+='a';});
> $('##BLAH').click(function(){window.status+='b';});
>
> Clicking 'BLAH' you get 'ab' on the status bar instead of 'a'??
>
>

Reply via email to