-1
I have a select
that is opening their options
above it. I believe it is on account of the amount of results, bearing in mind that it comes from a consultation of the bank.
<select class="custom-select" id="insc_cnpj" name="insc_cnpj">
<option value="" disabled selected>Selecionar CNPJ</option>
<?php
$arg = array("select"=>"distinct(insc_cnpj)","tabela"=>"cliente","where"=>"order by insc_cnpj");
$obj_cnpj = $obj_pdo->getConsultaDI($arg);
$tl_cnpj = 0;
if(!empty($obj_cnpj)){
$tl_cnpj = count($obj_cnpj);
for($i=0; $tl_cnpj > $i; $i++){
if(strlen($obj_cnpj[$i]->INSC_CNPJ) > 17){
print "<option value='{$obj_cnpj[$i]->INSC_CNPJ}'>{$obj_cnpj[$i]->INSC_CNPJ}</option>";
}
}
}
?>
</select>
I wonder: there is how I define in which direction mine select
should open?