私はコードモーダル持つ:モーダルウィンドウを閉じた後でイベントを追加するにはどうすればよいですか?
<-- Button to trigger modal -->
<div id="result"></div>
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
<-- Modal -->
<div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
を、私は近いmoalウィンドウの後になってなければならないコードがあります。
$('#result').html('yes,result');
をモーダルウィンドウを閉じるときに(近いまたは非表示)ことを確認する方法を私にしてください知らせます2番目のコードを実行しましたか?
ここでは何を使用していますか? jquery ui ?? – bipen
bootstrap.js 詳細http://bootstrap-ru.com/javascript.php#modals –
http://stackoverflow.com/questions/171928/hook-into-dialog-close-event –