Answers for "get element by data attribute vanilla js"

0

get element by data attribute javascript

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

Code answers related to "get element by data attribute vanilla js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language