[jQuery] Re: selector to string

2007-11-27 Thread Jean-Sébastien
i want to send an ajax query in which i pass the element to update: $.ajax({url: _href,data: "rel=" + escape("#myId a.myClass")}) On Nov 27, 8:58 am, Suni <[EMAIL PROTECTED]> wrote: > I dont think there is any easy way to do that. > > A single DOM element could have 10 different selectors that m

[jQuery] Re: selector to string

2007-11-27 Thread Jean-Sébastien
hi suni, want to send an ajax query, in which i tell the dom element to update. On Nov 27, 8:58 am, Suni <[EMAIL PROTECTED]> wrote: > I dont think there is any easy way to do that. > > A single DOM element could have 10 different selectors that match it > (or others with it). Such a function cou

[jQuery] Re: selector to string

2007-11-26 Thread Suni
I dont think there is any easy way to do that. A single DOM element could have 10 different selectors that match it (or others with it). Such a function could return just "#myId", or maybe "div.foobar a". Why would you need to do this in the first place? Once you've selected an element you gener