jQuery validation plugin error: TypeError: validator is undefined

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

Here is html code for the form:

13条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 03:19

    Because this is the first topic that Google shows for "validator is undefined" then I will describe my solved problem, maybe someone will find it helpfull.

    I was using 'maxlength' attribute (nothing fancy) and I got this error. The reason was nested forms. One of the textarea was inside both forms. Can happen when you have modals (dialogs) with forms in main view.

提交回复
热议问题