Answers for "Getting the ID of the element that fired an event"

C#
0

Getting the ID of the element that fired an event

$(document).ready(function() {
    $("a").click(function(event) {
        alert(event.target.id);
    });
});
Posted by: Guest on July-28-2021

Code answers related to "Getting the ID of the element that fired an event"

C# Answers by Framework

Browse Popular Code Answers by Language