jquery find parent with attribute name code example Example: jquery get attribute value of parent element $(this).parent().attr('data-element'); // jQuery