How do I make a check box get "checked" when I enter values in 2 fields dynamically?

0

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>
    
asked by anonymous 12.10.2017 / 03:22

0 answers