﻿
$(document).ready(function() {
    $.validator.addMethod("phone", function(value, element) { 
        return this.optional(element) || /^[0-9 ]*$/.test(value);
    }, "Please specify a valid phone number");
});