I\'m trying to add validation rules on a form that is dynamically populated, depending on a JSON response from a back-end. I\'m using jQuery 1.9.1 and jQuery Validation plugin.<
Where is .validate()
?
You cannot call plugin method rules("add")
until sometime after the plugin has been initialized with .validate()
.
I think the error is thrown from the validator plugin,
var settings = $.data(element.form, "validator").settings;
May be the 'id' is not referred properly.