Home > @jsplumbtoolkit/dialogs-core > checkValidity
checkValidity() function
Searches children of the given element to find elements that have a jtk-att
set. For each of those, if the checkValidity
method is defined, this method executes it. If it returns false, this method returns false. If no elements have checkValidity
or no checkValidity()
call returns false, this method returns true.
checkValidity
is a method defined in input elements and textareas, when a pattern
is defined on the element (or if it is marked required and has no valuer set)
Signature:
export declare function checkValidity(el: HTMLElement): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
el | HTMLElement |
Returns:
boolean