简单的问题,我希望.
我需要在我的选择列表'Please Select'中添加一个默认值,并将其设置为disabled.
<select name="myselect" id="myselect">
<option value="" disabled>Please Select</option>
<option value="1">Item 1</option>
<option value="2">Item 2</option>
</select>
Run Code Online (Sandbox Code Playgroud)
我目前的laravel形式:: select是
{{
Form::select(
'myselect',
$categories,
$myselectedcategories,
array(
'class' => 'form-control',
'id' => 'myselect'
)
}}
Run Code Online (Sandbox Code Playgroud)
如何修改此选项以包含默认选项值?