我有以下的jQuery函數包括一個jQuery函數中的HTML代碼
$('button.forward').click(function() {
});
這裏曾經前進按鈕 - 下面是按鈕的代碼 - 被點擊,一個模式應該出現這樣
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
讀取API提問之前。 :http://getbootstrap.com/javascript/ – taesu 2015-01-31 17:56:45