The value property sets or returns the value of the value attribute of a checkbox.
For checkboxes, the contents of the value property do not appear in the user interface. The value property only has meaning when submitting a form. If a checkbox is in checked state when the form is submitted, the name of the checkbox is sent with along with the value of the value property (if the checkbox is not checked, no information is sent).
Set the value property:
Return the value property:
The value property is supported in all major browsers.
Display the value associated with the checkbox:
Your message has been sent to W3Schools.