﻿$(document).ready(function() {

  //***************************
  // contact validation rules
  //***************************
  $('form#contact-form').validate({
    
    // tell the validation plugin to check the following inputs
		// documentation: http://docs.jquery.com/Plugins/Validation
    rules: {
      _1_Name: "required",
      _2_Phone: {required: true, digits: true},
		  _3_Email_From: {required: true, email: true},
		  _4_Comments_Enquiry: "required"
    },
    messages: {
      _2_Phone: {digits: "Please enter numbers only"}
    },
    success: function(label) { 
      // inform user their input is valid
      label.html(" ").addClass("correct"); 
    }
    
  });

});