Closed StevenVerbiest closed 6 years ago
You have value=""
which makes your checkbox useless. Either remove value and let browser set it to default value which is on
or set some value like 1 yourself.
Inputs with empty value are not validated as per spec. It is the same as having option in select with empty value.
That fixed the issue. Thanks!
See JSFiddle:
https://jsfiddle.net/oc0veLLp/3/
The required error is always thrown, even when the checkbox is actually checked.
I am only including
Am I doing something wrong? Did I forget to include a js file? Or is this actually a bug?