I need to select all elements, that has binded "click" event? Is there such selector exists?
                
                A: 
                
                
              No. You can iterate over all elements and check if they have an event binding. But that wouldn't be very efficient unless you have a clue what kind of elements would have that event binding so you can narrow the search.
                  Vasil
                   2009-03-19 09:44:04
                
              it might not be so horribly ineffecient, because I suspect jquery does a lot of looping over everything for any query
                  cobbal
                   2009-03-19 11:12:50
                
                +6 
                A: 
                
                
              It is not supported natively by jQuery, but you can write your own custom selector using hasEvent plugin :
jQuery.expr[":"].click = "jQuery(a).hasEvent('click');";
$("a:click").doStuff();
EDIT :
There is also the Event Bound Selector plugin which is more complete and works out of the box, but is also bigger.
                  ybo
                   2009-03-19 11:09:32