how to get parent attribute value in jquery code example Example: jquery get attribute value of parent element $(this).parent().attr('data-element'); // jQuery