OK, what am I missing?
I have:
<form>
<input type="checkbox" name="showRatings" value="1" checked>
<label for="showRatings">Show Ratings</label>
</form>
And when I click on the “Show Ratings” text, the checkbox is not toggling.
I know it’s something simple.
I believe the
labelelement links to theidattribute, not thenameattribute. Try this:Reference here.