Invoer Selectievakje Type Eigenschap
Voorbeeld
Zoek uit welk type formulierelement het selectievakje is:
var x = document.getElementById("myCheck").type;
Definitie en gebruik
De eigenschap type geeft terug welk type formulierelement het selectievakje is.
Voor een checkbox retourneert deze eigenschap altijd "checkbox".
Browserondersteuning
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Syntaxis
checkboxObject.type
Winstwaarde
Type | Description |
---|---|
String | The type of form element the checkbox is |
❮ Invoer Selectievakje Object