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 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 generally should _avoid_ selecting it again with a
> selector string (why bother the extra overhead of re-selecting since
> you already have the element selected?). You can just pass the object
> as a parameter to whatever functions you might need.
>
> What are you trying to accomplish?
>
> --
> Suni

Reply via email to