Hi Jörn,

Yes I will get a test page up and running
Interestingly enough it works fine in IE6 but is not working in
FF3.0.7

Thanks
Andy

On Apr 14, 9:42 pm, Jörn Zaefferer <joern.zaeffe...@googlemail.com>
wrote:
> Okay, then its something else. Could you provide a testpage?
>
> Jörn
>
> On Tue, Apr 14, 2009 at 10:08 PM,AndyCramb<andycr...@googlemail.com> wrote:
>
> > Thanks for getting back to me
> > I have the id specified
>
> > <input type="text" value="" name="source"
> > id="source"/>
>
> > It just had wrapped on to the new line
> > Sorry I could not find away of formatting the code I pasted in so it
> > looks a bit of a mess
>
> > On Apr 14, 7:06 pm, Jörn Zaefferer <joern.zaeffe...@googlemail.com>
> > wrote:
> >> There is no field with the id "source"? Add id="source" to that input...
>
> >> Jörn
>
> >> On Tue, Apr 14, 2009 at 6:33 PM,AndyCramb<andycr...@googlemail.com> wrote:
>
> >> > Hi,
>
> >> > I am trying the forms validation plugin and cannot figure out where I
> >> > am going wrong with it
> >> > I can get cross validation working aginst a checkbox but I am unable
> >> > to get it working against an input box
> >> > HTML is supplied below
> >> > The rules metadata is below the HTML
> >> > Any help is much appreciated
> >> > Andy
>
> >> > <fieldset>
> >> >            <legend>Test JQuery validation</legend>
> >> >            <ol>
> >> >                <li>
> >> >                    <label for="cbox">Last Months Bank Statement: </
> >> > label>
> >> >                    <input type="checkbox" value="true" name="cbox"
> >> > id="cbox"/><input type="hidden" value="false" name="cbox"/
>
> >> >                </li>
> >> >                <li>
> >> >                    <label for="source">Source: </label>
> >> >                    <input type="text" value="" name="source"
> >> > id="source"/>
> >> >                </li>
> >> >                <li>
> >> >                    <label for="date">Date: </label>
> >> >                    <input type="text" value="" name="date" id="date"/
>
> >> >                </li>
> >> >                <li>
> >> >                    <label for="amntPaidIn">Amount Paid In: </label>
> >> >                    <input type="text" value="" name="amntPaidIn"
> >> > id="amntPaidIn"/>
> >> >                </li>
> >> >            </ol>
> >> >            <input type="submit" value="validate"/>
>
> >> >        </fieldset>
>
> >> >    rules: {
> >> >        source: {
> >> >          required: "#cbox:checked",//works
> >> >          minlength: 2
> >> >      }
> >> >      , date: {
> >> >          required: "#source:filled",//not working
> >> >          minlength: 2
> >> >      }
> >> >      , amntPaidIn: {
> >> >          required: true,
> >> >          email: true
> >> >      }
> >> >    }, debug: true

Reply via email to