$("#forms-3").validate({
	rules: {
		first_name: {
			required: true
		},
		last_name: {
			required: true
		},
		contact_phone: {
			required: true
		},
		email_address: {
			required: true,
			email: true
		},
		password: {
			required: true,
			minlength: 6,
			maxlength: 8
		},
		cpassword: {
			required: true,
			minlength: 6,
			maxlength: 8
		}
	},
	messages: {
		first_name: {
			required: "First Name field is required"
		},
		last_name: {
			required: "Last Name is required"
		},
		contact_phone: {
			required: "Mobile number is required"
		},
		email_address: {
			required: "Email address is required",
			email: "Enter valid email address"
		},
		password: {
			required: "Password is required",
			minlength: "Your password must be at least minimum 6 characters long",
			maxlength: "Your password must be at least maximum 8 characters long"
		},
		cpassword: {
			required: "Confirm Password is required",
			minlength: "Your password must be at least minimum 6 characters long",
			maxlength: "Your password must be at least maximum 8 characters long"
		},
	}
});




$("#frm-delivery").validate({
	rules: {
		zipcode:{
			required: true,
		},
		contact_phone: {
			required: true,
		}
	},
	messages: {

		zipcode: {
			required: "Zip code is required"
		},
		contact_phone: {
			required: "Mobile number is required",
		},
	}
});


$("#forms_credit").validate({
	rules: {
		cvv:{
			required: true,
			number: true,
			rangelength: [3, 3]
		},
		
	},
	messages: {

		cvv: {
			required: "cvv is required",
			number: "Enter valid cvv",
			rangelength: "Enter 3 digits only"
		},
	
	}
});

