I have the following combobox as shown below, it is populated with the data coming from a table of a database, so yeah, I would like when an item of the combobox was selected an input was displayed, and when it was not No input item is hidden. Is it 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>