This is my code to update the jQuery validation dynamically. In document load i create the validation. This code is used to update the phone number validation dynamically. A
As a related bug, if you add a custom rule, using:
$.validator.addMethod('field-is-valid', function (val, element) { ...})
but then reference it in your rules declaration with the wrong name:
$(element).rules('add', { "field-valid": true })
you'll get the same Cannot call method call of undefined.
Cannot call method call of undefined