Not sure the best way to do this, but this might work jQuery(function(){ var anotherFunction() { // your thing } var myFunction() { // do something
$(this).bind('click', anotherFunction); $(this).unbind('click', myFunction); } $('a').bind('click', myFunction); }); On Dec 22, 5:59 am, alextait <alext...@gmail.com> wrote: > I am setting the click attribute of an anchor tag using query on the > document ready event. > > Once the user has clicked on this link I am attempting to change the > click event to call another method than the one initialy setup. > Instead of replacing the old method is simply appends the new method > so that both methods are called . > > any help would be great ! > > thanks