Easy Tutorial
❮ Jsref Round Jsref Fontsize ❯

Radio checked Attribute


Definition and Usage

The checked attribute sets or returns whether a radio button is checked or not.

Syntax

Set the checked attribute:

Return the checked attribute:


Browser Support

All major browsers support the checked attribute.


Example

The following example demonstrates checking and unchecking a radio button:


❮ Jsref Round Jsref Fontsize ❯