0
我创建了一个简单的JavaScript警告添加模式确认或删除
if (confirm('Are you sure you want to remove this item?')) {
swoosh(id, path+'swoosh_config/swoosh_delete_jobtitle', 'jobtitledv')
}
,我把它变成一个模式。
$('#delete').modal('show');
,这里是我的新警报
<div class="modal fade" id="delete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-haspopup="true" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="alert alert-info fade in" id="alert">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4>Heads Up!</h4>
<p>What you are doing will delete a data!</p>
</div>
</div>
</div>
</div>
我如何将添加一个确认按钮,将导致我说,“旋风”再加上它的链接?
http://jqueryui.com/dialog/#modal-confirmation也许可以帮助你 – aleation