0
I need to create a condition so that if the bank option is Smartphone or Common Device that appears in Selected, otherwise it appears as "Select".
<div class="form-group col-md-3">
<label>Aparelho</label>
<select name="aparelho" class="form-control">
<option selected> <?php echo $row_tel['aparelho'];?> </option>
<option>Smartphone</option>
<option>Aparelho Comum</option>
</select>
</div>
Currently, it’s getting this way:
Because what is currently registered the bank is the "Common Device" then appears the value registered in the bank and the options of "Selected".
Anyone can help?
– Erick Cerqueira