Haven't read the whole topic but it looks like you could certainly
make use of the Element#identify() method which will give the element
a unique id (and return this id). You might alternatively want to call
the down() method on the element which will traverse down the dom and
return the first descendant element which conforms to the css selector
taken as a parameter by element#down()

On Sep 9, 10:29 am, ColinFine <[EMAIL PROTECTED]> wrote:
> On Sep 5, 4:28 pm, elduderino <[EMAIL PROTECTED]> wrote:> No it's not 
> unique...the element is created on the fly and is a copy
> > of another element....i'm not worried about semantics here especially
> > as the element only a copy...this is a really complicated dragging and
> > dropping application and i need to keep track on the id of an element
> > in order for it to work..... the id plus the class de_small is it's
> > state once it's been dropped......the context in which i'm trying to
> > grab it is if the user has dropped it in to the wrong droppable...if
> > they have i'm grabbing it and want to changes the classname....so
> > actually what i want is:
>
> It doesn't matter whether the element is created on the fly or not.
> Element id's must be unique. If your id is duplicated, the behaviour
> is not defined.
>
> (But Kangax is right that your immediate problem is that $$ returns an
> array).
>
> Colin fine
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to