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