Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
poiuyt098
6 months ago
|
parent
|
context
|
favorite
| on:
An HTML Switch Control
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.
sourdoughness
6 months ago
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: