Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get element by attribute value in javascript

document.querySelectorAll('[data-foo="value"]');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #element #attribute #javascript
ADD COMMENT
Topic
Name
7+4 =