In my forms instead of:
<div> <label> <input> ... </div>
<li> <label> <div> <input> ... </div> </li>
When there's a validation error, the error class is added to <div> and the label remains unaltered. What is a neat way to make the label red too? I figure it can be done by changing the validation algorithm to add the error class to <li> instead of <div> and then altering styles accordingly.