Get element from which onclick function is called

前端 未结 8 1020
野趣味
野趣味 2021-01-18 03:59

I have a button with a onclick attribute which is pointing to the function test().


<         


        
8条回答
  •  抹茶落季
    2021-01-18 04:32

    If you want to use Jquery, then you can call the $(this) object in the function.

提交回复
热议问题