The invalid event fires when a submittable element has been checked for validity and doesn't satisfy its constraints. The validity of submittable elements is checked before submitting their owner <form>, or after the checkValidity() method of the element or its owner <form> is called.

General info

Interface Event
Bubbles No
Cancelable Yes
Targets Element
Default Action Varies (can prevent form from being submitted)


Property Type Description
target Read only EventTarget The event target (the topmost target in the DOM tree).
type Read only DOMString The type of event.
bubbles Read only Boolean Whether the event normally bubbles or not.
cancelable Read only Boolean Whether the event is cancellable or not.



See also

Document Tags and Contributors

Last updated by: mdnwebdocs-bot,