The example is fine... I edited it from the page by removing "unrelevant" parts to save space. One "unrelevant" part was rules: {contactRequest_Email:{required:false,email:true} ==> rules: {contactRequest_Email:{email:true}. The required:false was the problem.
On Feb 5, 9:34 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > felixg schrieb:> Hello, > > I want to validate a non-required text field that can hold an email > > address. That is, it can be empty, but if it does contain text it must > > be a valid email address. I use jQuery 1.2.2 and jQuery validation > > plug-in v1.2. This code allows any input for some reason: > > [...] > > > What I'm doing wrong? > > Could you post a testpage? Your example code looks fine. > > Jörn