You can use:
```html
<input type="checkbox" name="races" id="'.$race.'" value="'.$race.'" onClick="raceToggle()"><label for="'.$race.'">'.$race.'</label>
```
and when someone clicks the race name it should toggle the checkbox for that race.