私は原因がわかりませんが、私はきちんと私のボタンに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