【发布时间】:2016-10-06 08:43:43
【问题描述】:
我在 java 脚本中有一段代码,用于在选中复选框之前禁用按钮。它不会在引导程序中灰显。它只显示按钮。
https://jsfiddle.net/soljohnston777/wg00ymg8/
引导程序尝试使这项工作:
模态/HTML:
<div id="example" class="modal hide fade in" style="display: none; ">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>Terms and Conditions</h3>
</div>
<div class="modal-body">
<h4>Text in a modal <input type="checkbox" required="required" id="myCheck"></h4>
<p>You can add some text here.</p>
<div class="checkbox">
<input id="check" name="checkbox" type="checkbox">
<label for="check">Some Text Here</label>
</div>
</div>
<div class="modal-footer">
<input type="submit" name="" class="btn" id="btncheck" value="I Agree" />
<a href="#" class="btn btn-success" data-dismiss="modal">Close</a>
</div>
</div>
没有模态类:
http://www.bootply.com/nV8ShsZUH5
我做错了什么?
【问题讨论】:
-
这不是重复的原因是因为我遇到了引导模式的问题。如果代码作为“非”模态运行,它可以正常工作。
标签: javascript html ajax twitter-bootstrap bootstrap-modal