I'm using the following commands to create the checkboxes
if (isset($finded_documents)) {
// inicia a variável que vai guardar os checkboxes
$checkboxes = '';
// para cada documento encontrado
foreach ($finded_documents as $check) {
// acrescenta um Checkbox
$checkboxes .= '<div class="custom-control custom-checkbox">'
. "<input id='check-$check[id]' type='checkbox' value='$check[id]' name='docs[]' class='custom-control-input'> "
. "<label class='custom-control-label' for='check-$check[id]'>$check[Nome_Documento]</label>"
. '</div>';
}
// mostra os $checkboxes na tela
echo $checkboxes;
}
?>
I would like that when I click on a checkbox, I would add this command line:
<input type="date" name="data" placeholder="Digite a data do Vencimento"
class="form-control"><br>