Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

store id of an element jquery

$(". only_this_class"). click(function() { var clickedId= $(this). attr("id"); alert(clickedId); });
 
PREVIOUS NEXT
Tagged: #store #id #element #jquery
ADD COMMENT
Topic
Name
4+2 =