Jquery Validation Plugin - can you enable “eager” validation from the options?

后端 未结 4 511
挽巷
挽巷 2020-12-29 12:27

I\'m using the Jquery Validation plugin on a project.

By default, the plugin validates input when the submit button is clicked. The behavior is \"lazy\" in order to

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 13:05

    Actually, the default behavior I get is validation on the focusout and keyup events, which I see in the plugin code as defaults. I have to disable those in the plugin configuration in order to only get validation at submit. Perhaps you should post some of your code... I don't think the situation is completely clear.

提交回复
热议问题