How do I return a custom message based on an if statement in the
addMethod function?
$.validator.addMethod("validateBaseDepth", function(value, element,
params)
{
var blnImperialUnits = ($
("#RequireBaseDepthUnitImperial:checked").val() == "imperial" ? true :
false);
Hello,
I'm using the jQuery Validation plugin (which is awesome by the way).
I need to dynamically add a validation rule, so I use the rules("add",
rules) method. I set it up to do remote validation, which works, but I
want to display a custom message, not the default "Please fix this
field." mes
2 matches
Mail list logo