If you're using jquery-1.2+ you can do the following to just wipe out your events:
$('#BLAH').bind('click.myfn', function() { ... }); $('#BLAH').unbind('click.myfn').bind('click.myfn', function() { ... }); This will only replace your event (myfn can be whatever you want) otherwise if you do unbind('click') it will remove all click events. Cheers, -js On 10/16/07, Karl Rudd <[EMAIL PROTECTED]> wrote: > > > 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'?? > > > > >