You could configure the metadata plugin to use something else then the class attribute. Currently you have the word "number" inside the class attribute, so the input has the class "number", metadata or not.
Jörn On Wed, Mar 11, 2009 at 1:13 PM, Walther <waltherl...@gmail.com> wrote: > > I'm not using any class "number". The problem only exists if the word > "number" exists inside the message, what can I remove or change in the > jquery.validate.js file to stop it "scanning" messages? > > I'm not sure where to put the delete line. If I add it in my document > ready function the validation breaks. > > Thanks for the quick reply > > Walther > > On Mar 11, 2:07 pm, Jörn Zaefferer <joern.zaeffe...@googlemail.com> > wrote: >> You probably have added a class "number" that the plugin picks up as a >> rule. You can remove or replace the class, or remove the number >> method: >> >> delete $.validator.methods.number; >> >> Jörn >> >> On Wed, Mar 11, 2009 at 1:01 PM, Walther <waltherl...@gmail.com> wrote: >> >> > I'm having a strange issue with the validation plugin. >> >> > I have a field for the users telephone number, but the only rule that >> > is set is that it is a required field. However, if you type any >> > character apart from a number it gives a "Please enter a valid >> > number" error which it shouldn't (as I never told it to validate on >> > numbers). The message for the required rule is "Please enter the >> > contact telephone number of the payee.", if I remove the "number" in >> > the message then it works fine. >> >> > I am using the metadata plugin to get the validation rules. >> >> > How can I stop the validation plugin from automatically adding >> > validation rules?