Answers for "Selecting element by data attribute js"

0

how to select data attribute in javascript

const link = document.querySelector('[data-link="1"]');
Posted by: Guest on April-07-2021
0

js select by data attribute

$("[attribute=value]")
Posted by: Guest on December-17-2020

Code answers related to "Selecting element by data attribute js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language