This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

checked

Summary

Gets or sets whether a check box or a radio button are checked.

Property of dom/HTMLInputElementdom/HTMLInputElement

Syntax

var checked = inputElement.checked;
inputElement.checked = value;

Return Value

Returns an object of type BooleanBoolean

Whether the check box or radio button is checked.

Usage

 Use this property to tick a check box or a radio button.