Alexandre Plennevaux wrote:
hello!
i would like to know if there is a way to have jquery tell you what is the DOM path to an element. For example: $(this).click(function(){
alert($(this).getPath();
});
which would output html > body > div.col > ul.menu > li > a.selected


Ask and ye shall receive!

http://davecardwell.co.uk/javascript/jquery/plugins/jquery-getpath/


--
Best wishes,
Dave Cardwell.

http://davecardwell.co.uk/javascript/jquery/

Reply via email to