Are these DIVs contained by a parent? Or have you (can you) apply a  
single unique class to them? If so, you can treat them as an  
enumerable collection using the "double dollar" or select functions.


Both of those return an array of extended objects which you can plug  
right in to Matt's snippet.


On May 10, 2009, at 7:18 PM, wrote:

> However it is not for a menu as such, but for a DIV tag that I just
> want to be highlighted when you click on it. There are 5 div boxes in
> a row so when you click one the previous box will not be active or the
> class will change to inactive.
> I will keep reading as TJ suggested and see if I can work out the code
> myself.

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to