js class data attr gettinf only for one time 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>