Extract & call JavaScript function defined in the onclick HTML attribute of an element(using jQuery attr/prop)

前端 未结 4 1521
春和景丽
春和景丽 2020-12-22 00:18

I am having 2 buttons A & B and I need to call the function defined in onclick HTML attribute of button B but on click of button A.

Also I need to pass an extra

4条回答
提交回复
热议问题