我不知道哪个原因,但我正确地将data-toggle
和data-target
分配给我的按钮。单击具有侦听器的相应按钮后,我的模式将不会显示。任何帮助为什么它不会显示?为什么当按钮被点击时模态不会显示表格数据?
@section ('content')
<div class = "row">
<div class = "col-md-12">
<table class = "table">
<thead>
<tr>
<th>Title</th>
<th>Content</th>
<th>Category</th>
<th>Approver</th>
<th>Date Sent</th>
<th>Action</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr class = "info">
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<button type="submit"
class="btn btn-success glyphicon glyphicon-thumbs-up"
data-toggle="modal"
data-target="#myModal"> Approve</button>
</td>
<td></td>
</tr>
</tbody>
</table>
<div class = "modal fade" id = "myModal">
<div class = "modal-dialog">
<div class = "modal-content">
<div class = "modal-header">
<h4>Confirm Approve</h4>
</div>
<div class = "modal-body">
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
检查您的控制台,看看是否有任何错误/警告。 –
@MuhammadSumonMollaSelim我检查我的控制台,但没有错误或警告。我正在使用Chrome。 – Francisunoxx