1
Follow the example of the form Note: in each TR(Line) the user need to fill at least one of the inputs. type choose at least one day of the week available.
<form>
<table id="tabela">
<tr>
<td><input type="text" name="segunda" class="form-control"></td>
<td><input type="text" name="quinta" class="form-control"></td>
<td><input type="text" name="sabado" class="form-control"></td>
</tr>
<tr>
<td><input type="text" name="segunda" class="form-control"></td>
<td><input type="text" name="quinta" class="form-control"></td>
<td><input type="text" name="sabado" class="form-control"></td>
</tr>
<tr>
<td><input type="text" name="segunda" class="form-control"></td>
<td><input type="text" name="quinta" class="form-control"></td>
<td><input type="text" name="sabado" class="form-control"></td>
</tr>
</table>
<button type="submit" > Enviar</button>
</form>
The idea is to make a dynamic function that gives a foreach on each and then check if at least one of the inputs were filled. Like, that would have to be done on every line. They all need to have at least 1 input completed. Thanks in advance for the effort
I don’t understand what’s wrong?
– Rafael
I’ve reviewed and edited and nothing....
– Rafael