Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $.validator.setDefaults({
- submitHandler: function() { alert("submitted!"); },
- highlight: function(input) {
- $(input).addClass("invalidBox");
- },
- unhighlight: function(input) {
- $(input).removeClass("invalidBox");
- }
- });
- // validate signup form on keyup and submit
- $("#10792124395").validate({
- rules: {
- input_23: "required",
- input_24: "required",
- input_22: {
- required: true,
- email: true,
- minlength: 7,
- },
- messages: {
- input_23: "Please enter your title",
- input_24: "Please select your nationality",
- input_22: {
- required: "Please enter a vail email address",
- minlength: "Your email must consist of at least 7 characters"
- }}
- });
- }});*/
- $(document).ready(function() {
- $("#10792124395").validate({
- rules: {
- input_23: "required",// simple rule, converted to {required:true}
- input_22: {// compound rule
- required: true,
- email: true
- },
- });
- });
Add Comment
Please, Sign In to add comment