Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get all attributes of an element in jquery

Object.values($jQueryObject.get(0).attributes).map(attr => console.log(`${attr.name + ' : ' + attr.value}`));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #attributes #element #jquery
ADD COMMENT
Topic
Name
3+3 =