checkValidity method
Returns whether a form will validate when it is submitted, without having to submit it.
![]() ![]() |
Syntax
object.checkValidity(retVal)Parameters
- retVal [out, retval]
-
Type: boolean
Returns true if the form passes validation, false otherwise.
Return value
Type: boolean
Returns true if the form passes validation, false otherwise.
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.21.3
See also
- HTMLButtonElement
- HTMLFieldSetElement
- HTMLInputElement
- HTMLObjectElement
- HTMLSelectElement
- HTMLTextAreaElement
- HTMLOutputElement
Show:

