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