jQuery.validate.js onkeyup = true error

前端 未结 5 1204
南笙
南笙 2020-12-05 08:05

With my jquery validation configuration, I get the following error when setting onkeyup to true. It works if I set it to false, but I don\'t get validation feedback until I

5条回答
  •  囚心锁ツ
    2020-12-05 08:26

    @Sparky is right, The correct answer is to remove the onkeyup option, my fiddle was working because I removed the onkeyup option not because I changed it to keyup.

    By default the validation will happen on keyup event, if you want to turn off this feature then you have to add the setting onkeyup: false.

    See the updated demo.

    Demo: Fiddle

提交回复
热议问题