Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Getting the ID of the element that fired an event

$(document).ready(function() {
    $("a").click(function(event) {
        alert(event.target.id);
    });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Getting #ID #element #fired #event
ADD COMMENT
Topic
Name
7+5 =