Easy Tutorial
❮ Prop Node Namespaceuri Prop Style Bordertopcolor ❯

Checkbox value Attribute


Definition and Usage

The value attribute sets or returns the value of the value attribute of a checkbox.

The value attribute of a checkbox is not displayed in the user interface. It is used for form submission (only the selected checkboxes will transmit data to the server, and if none are selected, no checkbox data will be transmitted).

Syntax

Set the value attribute:

Return the value attribute:


Browser Support

All major browsers support the value attribute.


Example

Display the value associated with the checkbox:


❮ Prop Node Namespaceuri Prop Style Bordertopcolor ❯