Input Radio type eigenschap

Definitie en gebruik

type De eigenschap retourneert het type van het formulierelement van het selectievakje.

Voor het object van het selectievakje, geeft deze eigenschap altijd "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, form element type of radio button.

Browser support

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