ohhhh...duh :)

i have to keep in mind that I have to traverse the DOM tree

Thanks :)

On Sep 16, 12:19 pm, Jörn Zaefferer <joern.zaeffe...@googlemail.com>
wrote:
> You need to go up one more level:
>
> errorPlacement: function(error, element){
>   error.appendTo( element.parent().parent().next().find(".errorMsg") );
>
> }
>
> Jörn
>
> On Wed, Sep 16, 2009 at 8:18 PM, Loony2nz <loony...@gmail.com> wrote:
>
> > 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