Input Radio type Attribute

Definition and Usage

type The property returns the form element type of the radio button.

For the radio button object, this property will always return "radio".

Example

Find out which type of form element the radio button belongs to:

var x = document.getElementById("myRadio").type;

Try It Yourself

Syntax

radioObject.type

Technical Details

Return Value: String Value, the form element type of radio buttons.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support