tags:

views:

25

answers:

2

jQuery UI has some nice convenient CSS styles for alerting and highlighting. I can see it at the themeroller site -- look on the right hand side. Is there a Javascript interface to these styles? Do we use hard-coded CSS? Where is this documented?

Is there method list, a cheatsheat, or anything other than the interactive docs on jQuery UI?

A: 

They are just CSS styles. You can apply them on the backend, or apply them using .addClass().

ajpiano
+1  A: 

Apply the appropriate CSS classes for the desired interaction cue from the UI/Theming/API page: .ui-state-highlight for highlight and .ui-state-error for error. You can do it statically or use .addClass('ui-state-highlight') or .addClass('ui-state-error') to do it dynamically.

flipdoubt
Your answer is good enough to be chosen, I believe this to be right -- but check out this link i got from irc thanks to `ajpiano` -- never saw it before today http://wiki.jqueryui.com/jQuery-UI-CSS-Framework
Evan Carroll
Sweet! I will Instapaper that.
flipdoubt