jQuery validation plugin error: TypeError: validator is undefined

后端 未结 13 2314
无人及你
无人及你 2020-12-09 03:10

Here is html code for the form:

13条回答
  •  自闭症患者
    2020-12-09 03:14

    In my case the error was because the validator was being called too early. I moved the code to a seperate function and called it using delay method of underscore.js. Worked like a charm.

    _.delay(doValidations);
    
    function doValidations() {
    ...
    });
    

提交回复
热议问题