HTMLInputElement: indeterminate property - Web APIs | MDN

Value

A boolean.

Examples

html

<input type="checkbox" id="indeterminate-checkbox" />
<label for="indeterminate-checkbox">Indeterminate checkbox</label>

js

const checkbox = document.getElementById("indeterminate-checkbox");
checkbox.indeterminate = true;

Specifications

Specification
HTML
# dom-input-indeterminate

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.