Skip to content Skip to sidebar Skip to footer

Jquery Validate Function Not Working

This problem, i am sure is very trivial but i am not able to get past it. My form is not getting validated using jquery validate. $(document).ready(function () {

Solution 1:

You did not show your HTML markup, so this answer assumes you correctly named your input elements.

In your code, you're specifying email twice...

rules: {
    email: "required",
    passwd: "required",
    email:{  // <- duplicate
        minlength: 10
    }
},

If you need to specify multiple rules for one field, then specify the field once and list the rules inside...

rules: {
    email: {
        required:true,
        minlength:10
    },
    passwd:"required"
},

Your messages option has the same problem.

Working DEMO: http://jsfiddle.net/4937t/

Post a Comment for "Jquery Validate Function Not Working"