Hi,

A few times now I have wanted to added an error class to the parent of  
the input / label elements on error, e.g. from

<div class="group">
   <label for="test">Test</label>
   <input type="text" id="test" name="test" />
</div>

to:

<div class="group error">
   <label for="test" class="error">Test</label>
   <div class="errors"><p class="error">Error!</p></div>
   <input class="error" type="text" id="test" name="test" />
</div>

How would I go about doing this?

Michal.

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to