Wednesday, July 29, 2009

[jQuery] Re: (validate) multiple error error messages per input

I tested your HTML using IE and FF in both cases the error message is
only displayed once using jquery.1.3.2 and validate 1.5.4.
Try to step through the validate code to find the error.
BTW, it is a good idea to close your input tag
<input id="blah" name="blah" type="text" />

On Jul 30, 1:03 am, jckos <johncar...@gmail.com> wrote:
> Thanks for the reply.
>
> My form looks like what you describe, but I still have the problem
>
> <FIELDSET>
>        <LEGEND>shipping address</LEGEND>
>                  <LABEL for="firstname" accesskey="f"
> class="labelRequired">first name <small class="labelRequired">*</
> small>:</LABEL>
>                  <INPUT type="text" id="firstname" name="firstname"
> tabindex="1" value="" title="" class="required">
>                 <LABEL for="lastname" accesskey="l" class="label">last name <small
> class="labelRequired">*</small>:</LABEL>
>                 <INPUT type="text" id="lastname" name="lastname" tabindex="2"
> title="last name" class="required">
>                 <LABEL for="company" accesskey="c" class="labelRequired">company:</
> LABEL>
>                 <INPUT type="text" id="company" name="company" tabindex="3"
> title="company">
>                 <LABEL for="street address" accesskey="s"
> class="labelRequired">street address <small class="labelRequired">*</
> small></LABEL>
>                 <INPUT type="text" id="streetAddress" name="streetAddress"
> tabindex="4" title="street address" class="required">
>                 <LABEL for="address line 2" accesskey="a"
> class="labelRequired">address line 2:</LABEL>
>                 <INPUT type="text" id="addressLine2" name="addressLine2"
> tabindex="5" title="address line 2">
>                <LABEL for="company" accesskey="c"
> class="labelRequired">city <small class="labelRequired">*</small>:</
> LABEL>
>                 <INPUT type="text" id="city" name="city" tabindex="6" title="city"
> class="required">
> </FIELDSET>
>
> On Jul 27, 9:07 pm, Jules <jwira...@gmail.com> wrote:
>
> > Since you didn't post your html and code, I would guess you don't have
> > name property specified on your html.
>
> > <input type="text" id="username"></input>
>
> > should be
>
> > <input type="text" id="username" name="username"></input>
>
> > On Jul 28, 8:26 am, jckos <johncar...@gmail.com> wrote:
>
> > > Hi,
>
> > > If I  focus on a field multiple times or submit the form multiple
> > > times, I the script adds multiple error messages per field, both valid
> > > and error classes, depending on the data entered.
>
> > > Any suggestions?
>
> > > Thanks,
>
> > > John

No comments: