jQuery クリックされた自分or親elementを探す

$(document).ready(function() {

$("#example div").click(function() {
var index = $(this).index();
$("#example_index").html("Index " + index + " was clicked");
});

});

ーーーーーーーーーーーーーーーーーー

$("*", document.body).each(function () {
var parentTag = $(this).parent().get(0).tagName;
$(this).prepend(document.createTextNode(parentTag + " > "));
});