我有这个引导复选框,并且我想在关闭时弹出一个警告对话框。检查Bootstrap数据样式是打开还是关闭
<div class="row">
<link href="css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="javascript/bootstrap-toggle.min.js"></script>
<!-- Status checkbox if ON or OFF -->
<input type="checkbox" id="status-check" checked data-toggle="toggle" data-onstyle="success" data-offstyle="danger">
</div>
看看这里: http://stackoverflow.com/questions/6571948/watch-for-change-of-the-inputtype-checkbox –