Tabs 3 - Change tab color on the fly

Tabs 3 - Change tab color on the fly


I have a javascript validation file...if there is an error I want to
turn the tabs red....I'm not sure how to accomplish this...i've been
trying something like....
.ui-tabs-nav{background:red};
How does it need to be coded to change the background color
programmatically.
Thanks,
Kacy