Is there a way to guarantee that an event handler be the first responder?
For example let us say that we bind 2 event handlers to the same textarea
function first(event) {
event.stopPropagation();
console.log('first function');
}
function second(event) {
console.log('second function');
}
$('body').on('keypress', 'textarea', first);
...
$('body').on('keypress', 'textarea', second);
Assuming that we have no control over the event handler order code declaration, is there a way for second
to make it so that it is handled first?