laravel Modal请求什么都不返回

时间:2017-10-21 17:55:39

标签: twitter-bootstrap laravel laravel-5.4

首先我制作模态引导程序,一切正常,但我不知道为什么我尝试返回此请求 - >输入('w_name');它什么都不返回

注意。我希望获得输出,如果我输入Hello它应该返回Hello而不是

<form action="{{route('warehouse-name.update',$wa->id)}}" method="post" role="form" id="add-form-{{$wa->id}}" >
    {{csrf_field()}}
    {{method_field('PATCH')}}
    <div class="modal fade" id="myModal" role="dialog">
    <div class="modal-dialog modal-sm">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title">Modal Header</h4>
        </div>
        <div class="modal-body">
          Test : <input type="text" value="{{$wa->name}}" name="w_name">
        </div>
        <div class="modal-footer">
            <button type="submit" class="btn btn-primary" onclick="$('#add-form-{{$wa->id}}').submit()">Save changes</button>
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
      </div>
    </div>
  </div>
</form>

0 个答案:

没有答案