Answers for "get all elements with a data attribute"

0

get element by data attribute javascript

document.querySelectorAll('[data-foo]');
Posted by: Guest on April-19-2021

Code answers related to "get all elements with a data attribute"

Code answers related to "Javascript"

Browse Popular Code Answers by Language