0
Hello, I’m trying to make a form in html where it contains TWO selects required, but I will use only one at a time, ie when I select one the other required should pass "beaten". The structure is as follows:
<form>
<select required>//se esse for selecionado não precisaria selecionar o outro
<option value="">
<option value="1">1</option>
<option value="2">2</option>
</select>
<select required>//da mesma forma se esse for selecionado o outro não precisa ser também.
<option value="3">3</option>
<option value="4">4</option>
</select>
</form>
The result of this code does not let me select only 1 select, I must select both for it to work, ie I would like a structure in the logic style "OR" and not "AND" as occurs here. If you have any way to do it without JS would be even better.
NOTE: Yes I need two SELECTS to do this for intuitive reasons.
Was exactly that, thank you only problem of JS is that we really do not always have support for it unfortunately.
– Wel
I understand your situation, I’m glad I helped you :)
– Caique Romero