Select type eigenschap
Definitie en gebruik
type
De eigenschap retourneert welk type formulierelement de glijdende keuzelijst is.
Voor de glijdende keuzelijst zal de waarde "select-one" of "select-multiple" zijn.
Zie ook:
HTML Referentiemanual:HTML <select> tag
Voorbeeld
Voorbeeld 1
Welk type formulierelement behoort de glijdende keuzelijst toe?
var x = document.getElementById("mySelect").type;
Voorbeeld 2
Welke type formulierelement is de glijdende keuzelijst die meerdere selecties toestaat?
var x = document.getElementById("mySelect").type;
Syntax
selectObject.type
Technical details
Return value: | String value indicating that the dropdown list (<select> element) is a form element type. |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |