The fundamental difference of the checkbox/radio to css and js?


As you know there are two options for styling checkbox/radio buttons
CSS :checked +
JavaScript add class on click

I mostly meet option with JS, but what is the actual difference? Are there any pitfalls in the treatment of the state of these buttons on the side of the server/client depending on the method of implementation?
June 26th 19 at 13:56
1 answer
June 26th 19 at 13:58
Now, the use of JS in such cases — bad

Find more questions by tags CSSHTMLJavaScript