Can an HTML checkbox value hold a boolean instead of a string?
13:08 19 Oct 2020

HTML Input values hold strings.

For example: This holds the string "yes".


However for checkboxes sometimes it would be convenient if the value was the boolean True. Obviously the value can be transformed into a boolean after the form has been submitted. However is there a way to store the value as a boolean to begin with?

html forms