Lets say I have a couple of CSS classes:
.tickup { color: green; }
.tickdn { color: red; }
.tick { color: black; }
Then I have JavaScript (which is using Prototype) that needs to dynamically change color of another element. That's easy - $('element').style.color = 'red'. But the thing is that the page is skinned, so my only way is to look up a class definition, one of three above, and get the color to set the element to.
Is there a way for me to do something like: findCssClass(tickup).color ?
Thanks!