Input Checkbox type eigenschap

Definitie en gebruik

type De eigenschap keert terug welke type formulierelement het selectievak is.

Voor het selectievak, deze eigenschap keert altijd "checkbox".

Example

Find out which type of form element the checkbox is:

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

Try it yourself

Syntax

checkboxObject.type

Technical details

Return value: String. The form element type of a checkbox.

Browser support

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