Why don't you use an array to store all of the elements that have been clicked and treat it like a queue?
-------------------------------------------------- From: "Andrew Dodd" <[email protected]> Sent: Tuesday, July 28, 2009 7:02 AM To: "Prototype & script.aculo.us" <[email protected]> Subject: [Proto-Scripty] Effect.Morph query > > Hi > > I page with multiple elements each of which are highlighted > (individually) onclick. > > I would like the morph effect to be removed from the previous element > when a new one is clicked (highlighted). > > I won't know what the id of the previous element was though, is there > a way to achieve this? > > Cheers > Andy > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
