0
I have the following combobox as shown below, it is filled with data coming from a table of a database, so far so good, I would like when a combobox item was selected an input was displayed, and when no item was selected the input was hidden. It is possible to do this with javascript?
<div class="col-sm-12" id="">
<div class="form-group">
<label for="processo">EMPRESA *</label></a><br/>
<select name="empresa" id="empresa"
onchange="ExibirDiv(this.value)" class="form-control">
<option value="">SELECIONE</option>
<?php
$parametro_empresa = filter_input(INPUT_GET,"parametro_empresa");
$empresa = "SELECT * FROM tb_empresa WHERE
razaosocial_pessoafisica LIKE '%" . $parametro_empresa . "%'";
$recebe_empresas = mysqli_query($con, $empresa);
while ($linha = mysqli_fetch_array($recebe_empresas)) {
echo '<option value="' . $linha['codigo_empresa'] . '">' .
$linha['razaosocial_pessoafisica'] . '</option>';
}
?>
</select>
</div>
</div>
Yes. It is possible
– adventistaam