-2

It's possible to select the radio buttons that are checked

input[type="radio"]:checked {
   // some style 
}

But is it possible to select all radio buttons that are not checked?

Jonathan
  • 8,453
  • 9
  • 51
  • 74
  • 7
    Have you tried `:not(:checked)`? – Martin J Sep 04 '20 at 10:51
  • 2
    Does this answer your question? [CSS3 :unchecked pseudo-class](https://stackoverflow.com/questions/8846075/css3-unchecked-pseudo-class) – Awais Sep 04 '20 at 10:52
  • 2
    For the person that closed this question. Let me know how this question can become more focused. Because to me this is pretty focused. It's a asking a single question around a specific issue. – Jonathan Sep 04 '20 at 10:55

1 Answers1

2

This should do the trick, as there is no such thing called unchecked in css3 yet. As far as I'm aware.

input[type="radio"]:not(:checked) {
    /* styles */
}
Adil Ahmed
  • 395
  • 1
  • 11