vendredi 31 juillet 2020

HTML Change the Background-Color of a Checked Checkbox

I have a really simple question but I could'nt find one simple answers for this.

I have a checkbox like below:

<input type="checkbox">

And I want to change just the background color when this checkbox is checked.

Is there a simple way to do this in CSS or JS ?




Aucun commentaire:

Enregistrer un commentaire