Answers for "select based on data attribute javascript"

0

how to select data attribute in javascript

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

select by data attribute

$('*[data-id="your_id"]');
Posted by: Guest on September-10-2020

Code answers related to "select based on data attribute javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language