CSS Pseudo-class :checked
This selector allows us to select element when they are in the checked state.
It only works with the inputs checkbox and radio.
Examples
Compatibility
| Chrome | Firefox | Internet Explorer | Opera | Safari |
|---|---|---|---|---|
| All | All | 9+ | 9+ | 3.1+ |