【发布时间】:2022-12-27 22:42:46
【问题描述】:
I want to have a default value in my dropdown but I dont find how to do it.
The variable is status and the value is1that is Available.
<div class="col-12">
<strong>Estatus: </strong>
<select id="status" name="status" class="form-control" autocomplete="off">
<option>-- Seleccionar --</option>
@foreach ($getStatus as $statusA)
<option {{($statusA->id == $status) ? 'selected':''}} value="{{$statusA->id}}">{{$statusA->name}}</option>
@endforeach
</select>
</div>
Its a filter that I used I want that the client always see Available
【问题讨论】: