Back to Content

HTMLButtonElement: willValidate property

files/en-us/web/api/htmlbuttonelement/willvalidate/index.md

latest965 B
Original Source

{{APIRef("HTML DOM")}}

The willValidate read-only property of the {{domxref("HTMLButtonElement")}} interface indicates whether the {{htmlelement("button")}} element is a candidate for constraint validation. It is false if any conditions bar it from constraint validation, including:

  • Its {{domxref("HTMLButtonElement.type", "type")}} is reset or button;
  • It has a {{HTMLElement("datalist")}} ancestor;
  • The {{domxref("HTMLButtonElement.disabled", "disabled")}} property is true.

Value

A boolean value.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also