Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get element with data attribute javascript

const elements = document.querySelectorAll("li[data-id='2']");
Source by javascriptf1.com #
 
PREVIOUS NEXT
Tagged: #element #data #attribute #javascript
ADD COMMENT
Topic
Name
6+4 =