<select class="form-control chosen-type" name="mySelect">
<option disabled selected>Please Choose</option>
</select>
if no value = empty select, dont forget the name
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I was wondering if there way a way to achieve this code using the select type using form collectives:
<select class="form-control chosen-type">
<option value='type' disabled selected style='display:none;'>Please Choose</option>
<option value='Task'>Task</option>
<option value='Booking'>Booking</option>
</select>
In other words, not showing the placeholder as a selection type:
disabled selected style='display:none;'
When trying the following code I ofcourse get the placeholder in the list:
{!! Form::open() !!}
{!! Form::select('type', ['Task' => 'Task', 'Booking' => 'Booking'], null,
['class' => 'form-control chosen-type', 'placeholder' => 'Please Choose']) !!}
{!! Form::close() !!}
Please or to participate in this conversation.