I use jquery to bind events to multiple buttons ...
$(".numField").bind("click", stageButtonClick());
In the stageButtonClick() function, I want to get the object of the calling button, but I can not use $(this) inside the stageButtonClick function, it does not return anything to me.
In addition, it is not recommended to use the built-in function.
$(".numField").bind("click", function() {...})
I would like to know how to do it.
source share