get all elements with onclick in them?

后端 未结 6 1309
灰色年华
灰色年华 2020-12-19 15:32

I am looking for a way to list all elements that have onclick event on a page.

6条回答
  •  死守一世寂寞
    2020-12-19 16:27

    For a succinct jquery selector, you could use $('[onclick]') however that would only get elements wit the onclick attribute set.

提交回复
热议问题