表格未显示在MODAL内部

时间:2016-06-07 07:43:34

标签: jquery twitter-bootstrap bootstrap-modal

我的标记就是这个

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" 
         aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">Modal title</h4>
      </div>
      <div class="modal-body">
       <form action="{{ url('/hr/') }}" method="post"  class="form-horizontal " enctype="multipart/form-data">
                           <input type="hidden" name="_token" value="{{{ csrf_token() }}}" />
                            <table class="table">
                            <tr>
                                  <td >Document Type</td> 
                                  <td  >Document Number</td> 
                                  <td >IFSC is applicable</td>
                                  </tr>                              
                            </table>
                          </form>  
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

我正在解雇模式就像这样

$('.submitKyc').on('click',function(){

    $('#myModal').modal('show');

});

但是表格没有显示在模态中,而是打印在浏览器主体上

知道为什么吗?

由于

0 个答案:

没有答案