I have this 3 state checkbox:
<div>
<input required type="checkbox" id="effectiveness" name="effectiveness">
</div>
and at the beginning the value is set to intermediate with jQuery like this:
$("#effectiveness").prop("indeterminate", true);
The required attribute checks if the attribute checked is true. But I want checked="true" and checked="false" to be valid. The only invalid state should be indeterminate.
How can I achieve this?