@robskiwarrior Yes that is exactly what I want. The value of the anchor is pulled from a database that could have new ‘colors’, in this example, added. So doing it like @noahgelman would requird me to always be updating my jQuery. My original way would get all the values of all the anchors in the ul, resulting in all anchors being given a the same class of BlueWhiteGreen. Of course this would be useless as I need the class to pull in some CSS.
I have yet to test the solution by @chriscoyierbut it looks like it should do the trick. I’ll be back later to share. Thank you all.
UPDATE: I’ve just implemented the solution from @chriscoyier and it works as intended. Thank you.