Something like this?
$('#myDiv').click(function() {
var path = [this.tagName + '#' + this.id];
$(this).parents().each(function() {
path[path.length] = this.tagName;
});
alert(path.join(' < '));
});- Richard On 9/8/07, howa <[EMAIL PROTECTED]> wrote: > > > When mouse over an object, say a DIV for simplicity, I can use JQuery > to get its absolute position in DOM tree, > > e.g. > > div#header < body < html > > > > Any idea? > >

