Get element from which onclick function is called

前端 未结 8 1023
野趣味
野趣味 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:43

    Here is your solution jsfiddle , using jquery.

    
    
    
    
    
    

提交回复
热议问题