Hello,

I need help with targeting a class on a TD to hold error messages with
jQuery form validator plug-in.

This is my sampling of code:

< script>
....
errorPlacement: function(error, element){
   error.appendTo( element.parent().next());
}
</ script>

<tr style="border:0;">
    <td style="border:0;" align="right">First Name<span
style="color:#f00;">*</span></td>
     <td style="border:0;"><input maxlength="40" name="first_name"
size="20" type="text" /></td>
</tr>
<tr style="border:0;">
     <td style="border:0;"></td>
     <td class="errorMsg" style="border:0;"></td>
</tr>

I want to target the TD with the class: errorMsg to hold the error
message.

I've tried  error.appendTo( element.parent().next('.errorMsg')); to no
avail.

Any help would be much appreciated.

Thanks

Reply via email to