lundi 26 novembre 2018

CSS: Is there a way to detect using only CSS when all checkboxes in a form are checked?

I understand that I can use the following to style checkboxes that are checked:

.form-check-input:checked + label {
  color: blue
}

I have a form with a varying number of multiple checkboxes. Is there a way to apply the style only if all checkboxes in a form are checked?

I would like to do this in CSS only.




Aucun commentaire:

Enregistrer un commentaire