jQuery has wonderful selectors for DOM elements, but can you ‘select’ an event object.
That is, if I use inline JavaScript on the onclick attribute of an element, could I have a selector to find that event object so I can act on it.
I know I could do something like this:
$("a#some_link").click(function(event){//act on event here});
But how would I find the event object if inline JavaScript was used:
<a href="somepage.html" onclick="alert('how do I get my event oject?');">click me</a>
This question is a supplement to an earlier question: calling e.stopImmediatePropagation() from onclick attribute
Test it