 
 $(function(){  
 
 jQuery.validator.addMethod("phoneUS", function(phone_number, element) {
    phone_number = phone_number.replace(/\s+/g, ""); 
	return this.optional(element) || phone_number.length > 9 &&
		phone_number.match(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/);
}, "Please specify a valid phone number");

$("#myform").validate({
  rules: {
    field: {
      required: true,
      phoneUS: true
    }
  }
});
 
     $('#customForm')
		.validate({
			submitHandler: function(form) {
				$(form).ajaxSubmit({
					success: function() {
						$('#join').empty();
						$('#join').append("<p><strong><em>Thank you for requesting to join our CSA!</em></strong></p><p>We will contact you before we begin our new CSA season.</p>");
					}
				});
			}
		});
	});
	
			