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 |