0
I need the DIV with Submit:
<div class="botaonovochamado">
<input type="submit" name="CODIGO" value="Novo">
</div>
Only appear when certain fields are filled in. For example:
<select name="tipobroblema" id="tipoproblemas" required>
<option value="">- Tipo Problema -</option>
<option value="MAQUINAS - ">Maquina</option>
<option value="VAZAMENTO">Vazamento</option>
<option value="AR-CONDICIONADO">Ar Condicionado</option>
<option value="OUTRO - ">Outro</option>
</select>
<select name="atendente" required id="category">
<option value="">- Atendente -</option>
<option value="ATENDETE1">atendente1</option>
<option value="ATENDETE2">atendente2</option>
<option value="ATENDETE3">atendente3</option>
<option value="ATENDETE4">atendente4</option>
<option value="OUTRO">outro</option>
</select>
I have found posts that answer this doubt, however, this case has some differences.
Depending on the option the user chooses, new options will appear (in this case, new checkboxes.
For example: If in select "-Type Problem -" you are selecting "-Machines -", then it will display another select, in this case with the machine checkbox). I need the "REGISTER" button to appear only when the fields are filled in (detail that the check-box "- Hosts -" will only be invisible, it will still be on the page, so the code will not involve all select, will be for the select "Hosts -" only when it is visible on the display, ie, when the user selects the "Hosts" option in select "Problem Type -").
I hope you have understood my doubt. About anything, I am available. I thank you already.
Then the
submit
only appears if the "Host" option is selected in theselect
"Problem Type" is that?– hugocsl
Not necessarily. Submit will only appear when all VISIBLE fields are filled
– Raul Germano