我已附上下面的代码,我需要知道如何在其中添加下拉列表。
<div class="form-group">
<label class="control-label">Student/Staff</label>
{!! Form::input('text', 'student_staff', null, array('id' => 'student_staff', 'class' => 'input-lg form-control TabOnEnter', 'placeholder' => 'student_staff', 'tabindex' => 20)) !!}
</div>
答案 0 :(得分:0)
以下是代码:
{!! Form::select('size', ['L' => 'Large', 'S' => 'Small'], null, ['placeholder' => 'Pick a size...']) !!}
我希望这会有所帮助
答案 1 :(得分:0)
{!! Form :: select('student_staff',['student'=&gt;'Student','staff'=&gt;'Staff'],null,array('id'=&gt;'student_staff','class'=&gt; ;'input-lg form-control TabOnEnter','placeholder'=&gt;'student_staff','tabindex'=&gt; 20))!!}
这对我有用..