Shane Becker @veganstraightedge.com · Feb 16

Today in The Rule of Least Power: use HTML forms semantically, don't recreate native browser behavior with Javascript Pictured: two input[checkbox] with Javascript to deselect the other when one is selected Better: two input[radio], which does this for free by default

8 likes 2 replies

?

Replies

Johnathan Lyman · Feb 16

I might be starting to become the yells-at-cloud guy, but something like this tells me whomever built it may never have actually created a regular ol’ <form> in the pre-JS-as-a-framework-language days.

Rasmus Schultz · Feb 16

also they should be styled to look like radio buttons, or users won't intuitively understand that the options are mutually exclusive 😉