Jquery Selector that search for events

前端 未结 3 1509
暗喜
暗喜 2021-01-07 11:58

I need to select all elements, that has binded \"click\" event? Is there such selector exists?

3条回答
  •  北海茫月
    2021-01-07 12:35

    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.

提交回复
热议问题