Thank you my preciousssssss, it is very useful to debug !!
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dave
Cardwell
Sent: vendredi 27 avril 2007 13:13
To: jQuery (English)
Subject: [jQuery] Re: path and selectors
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/
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.467 / Base de données virus: 269.6.1/777 - Date: 26/04/2007 15:23