I have an input field with type="number". After this value is changed the page will perform validation and if failed it will show a bunch of information to the visitor.
So this validation should only be done when:
- Pasting something into the box
- Typing in the box and then pressing tab to select another input
- Typing in the box and then clicking outside the box
- Pressing enter (which performs a click on the submit button)
- Clicking increment and decrement buttons
And not when:
- Typing a single digit (as the input is not complete)
Are there HTML events available for this requirement?