Jörn Zaefferer wrote:
Scott Moore wrote:
Thanks for the information guys, though I'm not sure I'll be able to
use that specific solution given other requirements for the project.
Jörn, is this something you'll look to add to a future release?
If have it on my todo list, but am still looking for a good approach.
Currently I think it would help the most to just add the errorClass to
the parent element. As long as each label/input combo has its own
parent element, which is always the case in the non-trivial forms I've
seens, you can style it however you like. You could even style the
parent element, too.
What do you think about that? Do you need an explicit class on your
label, or is the parent element good enough? Its much easier to
implement and provides more flexibility.
I've added it to the RC1 release. Please give it a try: Just replace the
plugin and add a style rule that applies. Eg. if your label/fields
combos are enclosed in p-elements:
#myform p.error label { color: red; }
--
Jörn Zaefferer
http://bassistance.de