jQuery equivalent of JavaScript’s addEventListener method

I’m trying to find the jQuery equivalent of this JavaScript method call:

document.addEventListener('click', select_element, true);

I’ve gotten as far as:

$(document).click(select_element);

but that doesn’t achieve the same result, as the last parameter of the JavaScript method – a boolean that indicates whether the event handler should be executed in the capturing or bubbling phase (per my understanding from http://www.quirksmode.org/js/events_advanced.html) – is left out.

How do I specify that parameter, or otherwise achieve the same functionality, using jQuery?

7 Answers
7

Leave a Comment