How do I make checkboxes tick when the user enters values in both fields?
<td class="col-xs-2 col-sm-2 col-md-2 col-lg-2" ><input type="number" max="20" min="0" size="1" maxlength="2" name="<?php echo 'scorea'.$n; ?>" value="{{ old('scorea' . $n) }}" > </td>
<td> X </td>
<td class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <input type="number" max="20" min="0" size="1" maxlength="2" name="<?php echo 'scoreb'.$n; ?>" value="{{ old('scoreb' . $n) }}" ></td>
<td class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <?php echo $c->timeb; ?> </td>
<td class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <?php echo $c->campeonato; ?> </td>
<td class="col-xs-2 col-sm-2 col-md-2 col-lg-2"> <INPUT TYPE="checkbox" NAME="<?php echo 'jogo'.$n; ?>" VALUE="true">
</tr>