Created
September 5, 2018 22:18
-
-
Save CB9TOIIIA/510621c2798289c6f37347f0edefc1c8 to your computer and use it in GitHub Desktop.
orderform validate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery().ready(function() { | |
jQuery("#orderform").validate({ | |
allErrors: false, | |
rules: { | |
name: { | |
required: true, | |
minlength: 2 | |
}, | |
telephone: { | |
required: true, | |
minlength: 2 | |
}, | |
birthday: { | |
required: true, | |
anyDate: true | |
}, | |
datework: { | |
required: true, | |
anyDate: true | |
}, | |
passport: { | |
required: true, | |
minlength: 10 | |
}, | |
inn: { | |
required: true, | |
minlength: 10 | |
}, | |
address: { | |
required: true, | |
minlength: 2 | |
}, | |
profit: { | |
required: true, | |
minlength: 2 | |
} | |
}, | |
messages: { | |
name: "", | |
surname: "", | |
middlename: "", | |
email: "", | |
telephone: "", | |
birthday: "", | |
datework: "", | |
passport: "", | |
inn: "", | |
profit: "", | |
address: "" | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment