[jQuery] Modifying CSS classes with jQuery (or '.live()' for '.css')

[jQuery] Modifying CSS classes with jQuery (or '.live()' for '.css')


Hello,
Apologies if this turns out to be a trivial question. I currently am
working with jQuery on a set of elements assigned to colored
categories via a 'cat_[id]' class. Categories can change colors and if
they do I want to update the color of every elements belonging to it.
I want the same to be true in all new events added.
I would believe that the easiest solution to this problem would be
changing the 'color' attribute directly in the CSS class 'cat_[id]',
but have found no way to do so. As I am fairly new to jQuery I might
also be overseeing a much more elegant solution. Can anyone clarify?
Thanks in advance,
Lars