Answers for "how to select html element with data attribute"

0

how to select data attribute in javascript

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

Code answers related to "how to select html element with data attribute"

Code answers related to "Javascript"

Browse Popular Code Answers by Language