HTML DOM Input Checkbox indeterminate Property
The input checkbox indeterminate property in HTML DOM is used to set or return whether the state of a checkbox has been changed or not.
Basically, the checkbox has three state –
- true: It represent that status of checkbox is on.
- false: It indicates that checkbox status is unchecked or off.
- indeterminate: It represent that checkbox is neither on or not off.
It return the indeterminate property:
It set the indeterminate property:
checkboxObject.indeterminate = true|false
Return Values: It returns a Boolean that return true if the checkbox is in an indeterminate state, otherwise it returns false
Property Values: It contains a Boolean value that indicates whether the checkbox has indeterminate state or not.
- true: It defines that checkbox is set to indeterminate state.
- false: It defines that the checkbox is not in indeterminate state.
Example : Below HTML code illustrates that how to return the Indeterminate Property.
- Google Chrome
- Edge 12 and above
- Apple Safari
- Mozilla Firefox
Please Login to comment...