Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Voxera116417yAre you referring to markup or javascript?
In markup yes you remove it due to the original syntax definition since you added checked keyword as an valueless attribute.
Its not so much remove as to not add.
In js you can set the checked property to true or false. -
@Voxera in html javascript: not really, and you shouldn't depend on it.
The display changes but not the value. So this will cause many bugs. -
Voxera116417y@Codex404 which browser does it not work in?
https://stackoverflow.com/questions...
That solution has been working since netscape 2 or something like that. -
Root823427y@wokeRoach
I've built my own many times before, but styling them directly is limited to just a few things like background color.
Related Rants
Stupid HTML checkboxes! It's always annoyed me that you can't just set checked to true or false, but have to remove the property altogether to uncheck a checkbox. Better still would be if you'd only need to set the value to 1 or 0, and the checked or not would sort out automatically. Yes, there are frameworks to handle it, I know. But if checkboxes had been designed right from start, a framework or any sort of special cases would not be needed. You've got love HTML, but things like this make it ugly.
undefined
checkboxes
html