2
I intend to create a select
on my login page, but I intend to show the same only in case the select
previous receive value.
That one select
which receives the first value, already depends on a checkbox
, which is only visible if the checkbox
be filled, I have this way:
<label for="check">Acesso Telemóvel</label>
<input type="checkbox" name="check" id="check" value="1"/>
<label for="hostaname">Indique Qual</label>
<select class="form-control" name="hostaname" id="hostaname" style="display:none">
<option></option>
<option value="ALA A">Telemóvel ALA A</option>
<option value="ALA B">Telemóvel ALA B</option>
<option value="RT + APOIO">Telemóvel RT + APOIO</option>
</select>
$("#check").click(function(){
$("#hostaname")[this.checked ? "show" : "hide"]();
});
Now I intend to create a second checkbox
in this way:
<label for="Turno">Indique Qual</label>
<select class="form-control" name="Turno" id="Turno" style="display:none" >
<option></option>
<option value="M">Turno Manhã</option>
<option value="T">Turno tarde</option>
<option value="N">Turno Noite</option>
</select>
But only visible if the select
previous is completed