Can anyone help for this?
$("#mainForm").validate({
rules: {
mytxtName:{required:true},
txtPhone:{required:true}
}
});
$("#txtPhoneID").mask("999-999-9999");
mask
method is not part of jQuery itself, it is comes with plugin.
Look at my code: http://jsfiddle.net/RjE8s/4/