http://bassistance.de/jquery-plugins/jquery-plugin-validation/

Lets assume I have following HTML

<tr>
  <td class="label">
    <label for="date" class="required">Some date:</label>
  </td>
  <td>
<input type="text" class="text {required:true}" name="date" id="date" />
   </td>
</tr>

Now what I want to happen is that when form fails validation (date is empty), label for date gets class "error" added.

In my case I do not want customized error messages. Just change class of the label of the input.

There must be a simple way to do it. I just cant seem to find it...

--
Mika Tuupola                      http://www.appelsiini.net/~tuupola/



Reply via email to