News for hackers. Stuff that matters.
Re:An HTML Switch Control by poiuyt098 on Thursday February 29, 2024 @09:54AM (#39550078)
How about making it submit the "off" value while you're at it? So I wouldn't need js hacks for arrays of checkboxes on forms.
Re:An HTML Switch Control by sourdoughness on Thursday February 29, 2024 @03:36PM (#39554700)
The way this is implemented, it’s polish over a checkbox, with a fallback to the checkbox where it’s not supported. The semantics has therefore got to be the same as a checkbox - that is, no (native) submission of “off” switches.