您如何修改laravel集合,以将图标包括在文本字段中?
<div class="input-group">
<input type="text" class="form-control">
<span class="input-group-addon"><i class="fa fa-check"></i></span>
</div>
这是我尝试过的
{!! Form::number('passing_grade', old('passing_grade'), ['class' => 'form-control', 'placeholder' => '80']) !!}<i class="fa fa-check"></i></span>
答案 0 :(得分:2)
尝试以下代码:
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-check"></i></span>
{!! Form::number('passing_grade', old('passing_grade'), ['class' => 'form-control', 'placeholder' => '80']) !!}
</div>