use .data() to retrieve long data-attributes jquery code example
Example 1: jquery select element with data
$('[data-attribute="value"]');
Example 2: select by data attribute
$('*[data-id="your_id"]');
$('[data-attribute="value"]');
$('*[data-id="your_id"]');