如何在laravel中提交后清除表单字段

时间:2015-07-08 07:58:33

标签: html

 <div class="form-group">
          <label>Class</label>
          <input type="text" class="form-control text-capitalize" name="user_class" value="{{Input::old('user_class')}}" placeholder="Class">
           <div class="col-sm-12">
            @foreach($errors->get('user_class') as $user_class)
            <div class="alert alert-danger error">{{$user_class}}</div>
            @endforeach
          </div>
        </div>

0 个答案:

没有答案