jquery select data attr and check class code example Example: jquery select element with data $('[data-attribute="value"]');