Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to select data attribute in javascript

const link = document.querySelector('[data-link="1"]');
 
PREVIOUS NEXT
Tagged: #select #data #attribute #javascript
ADD COMMENT
Topic
Name
4+8 =