DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+6 =
Submit