最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Validate with parsleyjs onkeyup - Stack Overflow

programmeradmin1浏览0评论

While using ParsleyJS to validate my forms, I noticed the validations are performed only after the users clicks the submit button. Is there a way to perform the validation while the user is typing the input? Something like an onkeyup() event.

While using ParsleyJS to validate my forms, I noticed the validations are performed only after the users clicks the submit button. Is there a way to perform the validation while the user is typing the input? Something like an onkeyup() event.

Share Improve this question edited Aug 18, 2016 at 14:32 Hillel Garcia asked Aug 18, 2016 at 14:26 Hillel GarciaHillel Garcia 1091 silver badge12 bronze badges 1
  • please share the program you used, and errors. – Sachith Muhandiram Commented Aug 18, 2016 at 14:45
Add a ment  | 

2 Answers 2

Reset to default 7

Try This data-parsley-trigger="keyup"

Set the trigger option to 'input'.

发布评论

评论列表(0)

  1. 暂无评论