Or , maybe :

function xpath ( selector )
{
   var retval_ = [], xpath_ = "" ;
$(selector).each( function (){
     var e = this ;
     do {
          xpath_ = "/" + e.tagName + (e.id ? "[...@id=" + e.id +"]" : "")
+ xpath_ ;
          e = e.parentNode ;
     } while ( e.nodeType !== 9 )
  retval_.push("/"+xpath_) ;
});
  return retval_ ;
}

--DBJ
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to