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)

Properties

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.

Specification

HTML5

See also

Document Tags and Contributors

Contributors to this page: mfluehr, fscholz, teoli, Nickolay, Sheppy, ethertank, louisremi
Last updated by: mfluehr,