Answers for "How to get ID of button user just clicked?"

0

How to get ID of button user just clicked?

$("button").click(function() {
    alert(this.id); // or alert($(this).attr('id'));
});
Posted by: Guest on May-25-2021

Code answers related to "How to get ID of button user just clicked?"

Browse Popular Code Answers by Language