[jQuery] Jquery Validation always not showing correct error message

[jQuery] Jquery Validation always not showing correct error message


My Jquery validator refuses to show the correct error message but
rather the default error message every time the validation fails.
I am doing 3 things.
First
$.validator.addMethod("regexValidator0", function(value) {
return /^\(?\b([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]
{4})\b$/.test(value);
}, "Invalid");
I add a method to the validator.
Next I call the Validate method
$("#aspnetForm").validate({
errorLabelContainer: $("div.error")
});
Next I add a rule
$('#myelement).rules('add', {regexValidator0:true,messages:
{regexValidator0:'Please enter a valid phone number'}});
Now when my rule doesn't pass validation, I don't get the error
message I specified in my rule, but rather the default message
"Invalid" when I added the rule.
Am I doing something wrong here, or is this a bug?
Thanks