HTML DOM Property

HTML DOM Input Checkbox Object

The input checkbox object in HTML represents a checkbox in an HTML form. For each instance of an <input type = “checkbox”> element in an HTML form, a checkbox object is created. To access the checkbox object use indexing the elements array of the corresponding form or by using objects();

Table of Content

  • Creating checkbox object
  • Accessing checkbox object

Similar Reads

Creating checkbox object:

We can create checkbox objects through JavaScript. To create element use document.createElement() method. After creation use the appendChild() method to append it to the particular element (such as div) to display it....

Accessing checkbox object:

...

HTML DOM Property

We can access the checkbox object by using the getElementById() method. Put the id of the checkbox element in the getElementById() to access it....

Supported Browsers:

...