Change the Symbol of a selected graphics

Discussion created by hubertlo on Oct 23, 2012
Latest reply on Oct 23, 2012 by stevel
I know it can be done in the Silverlight API and I have done that before. Is such capability possible in the JavaScript API?

Let us keep in simple and assume we are dealing with a symbol plotted over a point. Logically I suppose I can change the symbol object of the selected graphics object in the onClick event. But then I need to change it back when the user selects something else.

So the question is: If I stored the graphic object in a variable, how can I find it again in the array?

If there is a better way to do it, please let me know. Users like to know what they have selected on the map, it will be the best if we can change the graphics on a selected item.