Is there a way to change an attribute of a CSS class using javascript?
To get the same effect, you can make another style:
and change the class of to foolnone.
Otherwise, you'd have to go through each of the children of and change the class. If that's the way you want to go, probably probably best to use some library, such as jquery. With it, you can do something like: