search dom by data attribute code example Example 1: jquery select element with data $('[data-attribute="value"]'); Example 2: select by data attribute $('*[data-id="your_id"]');