jQuery Traversing - parentsUtil

$('h2').parentsUntil('div').css("border","2px solid red");

Reset
div element