I have a checkbox like the one below, and I’d like to add font style=”BACKGROUND-COLOR: yellow” once the checkbox is clicked. How would I do this?
<input type="checkbox" name = "checkbox" id="prime">
<label for="checkbox" name="checkboxlabel" id="primelabel">Checkbox</label>
HTML
JS
CSS
Demo | Slightly longer but possibly less likely to cause any issues: Demo