javascript selector data attribute code example
Example 1: how to select data attribute in javascript
const link = document.querySelector('[data-link="1"]');
Example 2: js select by data attribute
$("[attribute=value]")
const link = document.querySelector('[data-link="1"]');
$("[attribute=value]")