Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get id of click element within a class list jquery

$(selector).click((e)=>{
	let id = e.currentTarget.id;
  	console.log(id);
})
 
PREVIOUS NEXT
Tagged: #id #click #element #class #list #jquery
ADD COMMENT
Topic
Name
5+6 =