Managing events
Managing events
Is there any way in jQuery to move the order of events on a dom element. I have an element (the add button on a jQGrid display) that I want to place a click event in front of the one one put in by jQGrid. I had a look at the jquery.eventmanager plugin but that doesn't really allow the kind of manipulation I want. I also found it didn't like handling the click event anyway.
I'm thinking something along the lines of;
- var saved = $(ele).getEvent('click'); //this function doesn't exist yet
- $(ele).unbind('click').bind('click.new',my_new_func).bind('click.old',saved);
Any ideas would be appreciated.
A