data attribute value with javascript variable code example
Example 1: select by data attribute
$('*[data-id="your_id"]');
Example 2: data attribute html
<!-- data-* attritubes can be used on any html element -->
<div data-my-custom-data="true"></div>