Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get id of an element

$(this).attr('id'); // for id
$(this).attr('class'); // for class
// this can be any element you have obtained
 
PREVIOUS NEXT
Tagged: #id #element
ADD COMMENT
Topic
Name
2+6 =