setValidity method

void setValidity([
  1. ValidityStateFlags flags,
  2. String message,
  3. HTMLElement anchor
])

The setValidity() method of the ElementInternals interface sets the validity of the element.

Implementation

external void setValidity([
  ValidityStateFlags flags,
  String message,
  HTMLElement anchor,
]);