Invoer Radio tipe Eiendom
Voorbeeld
Vind uit watter tipe vormelement die radioknoppie is:
var x = document.getElementById("myRadio").type;
Definisie en gebruik
Die tipe eienskap gee terug watter tipe vormelement 'n radioknoppie is.
Vir 'n radioknoppie-voorwerp sal hierdie eienskap altyd "radio" terugstuur.
Blaaierondersteuning
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sintaksis
radioObject.type
Terugkeerwaarde
Type | Description |
---|---|
String | The type of form element the radio button is |
❮ Voer radiovoorwerp in