Checkbox
JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax
Core client-side JavaScript object.
Description
The Checkbox object represents a graphical check box that the user can click to toggle the check on or off. Check boxes are created as part of a form by using the <input> tag with the TYPE attribute set to checkbox in an HTML document. Once created, check boxes can be accessed in JavaScript as an element of a form using dot notation. Check boxes can also be grouped together under the same name and accessed as an array by using brackets. The arguments, properties, methods, and event handlers of the Checkbox object are listed in Table 7.7.
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.