LaravelBlade 下拉列表类属性不起作用.
I cannot find any reference to class or assigning attributes to select / drop-down lists in the documentation.
http://www.laravel.com/docs/html#drop-down-lists
try 的示例:
{{ Form::select('product_id', $productList, array('class'=>'form-control')) }}
{{ Form::select('product_id', $productList, $attributes = array('class'=>'form-control')) }}
两者都返回相同的html,但没有class
属性:
<select id="product_id" name="product_id">
... Option Stuff ...
</select>