Disable keyup.ParsleyFailedOnce event after first failure
See original GitHub issueI’m using the remote validator, but I don’t want to make a request on every keypress after the initial failure. Please tell me how to do this. I’ve tried:
$form = $('form.parsley_enabled')
$form.parsley
trigger: 'blur'
successClass: 'valid'
errorClass: 'invalid'
excluded: "input[type=button], input[type=submit], input[type=reset], input[type=hidden], [disabled], :hidden"
$form.off 'keyup.ParsleyFailedOnce'
Issue Analytics
- State:
- Created 8 years ago
- Comments:7
Top Results From Across the Web
Can I prevent keyup event after a keydown in javascript?
Can I control an event during keydown to prevent the next keyup event of the same key? $(document).keydown(function (e) { if(some_condition) e.
Read more >Element: keydown event - Web APIs | MDN
The keydown and keyup events provide a code indicating which key is pressed, while keypress indicates which character was entered. For example, ...
Read more >.keyup() | jQuery API Documentation
The keyup event is sent to an element when the user releases a key on the keyboard. It can be attached to any...
Read more >Control.KeyPress Event (System.Windows.Forms)
Shift) { nonNumberEntered = true; } } // This event occurs after the KeyDown event and can be used to prevent // characters...
Read more >Detect single and multiple keypress events: JavaScript
The first thing I would like to say on the subject is not to use the 'keypress' event. This feature has been deprecated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
IIUC your question: Options are inherited, so you can set it on the form. Otherwise please use StackOverflow, thanks.
@guilhermeocosta Look at the
data-parsley-debounce
option.