Obtenir les DOM chemin de l'cliqué <a>

HTML

<body>
<div class="lol">
<a class="rightArrow" href="javascriptVoid:(0);" title"Next image">
</div>
</body>

Pseudo-Code

$(".rightArrow").click(function() {
rightArrowParents = this.dom(); //.dom(); is the pseudo function ... it should show the whole
alert(rightArrowParents);
});

Message d'alerte serait:

corps div.lol un.rightArrow

Comment puis-je obtenir avec javascript/jquery?

InformationsquelleAutor Tomkay | 2011-04-20