admin管理员组

文章数量:1426193

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'.

本文标签: javascriptValidate with parsleyjs onkeyupStack Overflow