-1
Good morning, I’m here with a question regarding forcing my checkbox to be filled.
i am using the required and works in every field except at checkbox.
Name field code (functional) -
<input type="text" name="nome" placeholder="Nome..." required=" " >
Checkbox code (not functional) -
<label style="margin-top:10px;" class="checkbox"><input required=" " type="checkbox" name="termos" value="1"><i> </i>Eu li e aceito os <a href="/termos_condicoes">termos e condições</a></label>
I couldn’t reproduce that problem, the
required
works normally at the checkbox, since any otherrequired
previous has been filled in correctly. Here is a print: https://i.ibb.co/F5WMK47/captur2.png, using the code you specified yourself.– Inkeliz
Why use
required=" "
and not justrequired
?– Woss