我有一个初学者的问题,jquery UI脚本未加载。基本上我试图使一些复选框作为按钮,但是当我这样声明jquery UI脚本时,这不起作用:
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<input type="checkbox" id="check" /><label for="check">Toggle</label>
<div id="format">
<input type="checkbox" id="check1" /><label for="check1">B</label>
<input type="checkbox" id="check2" /><label for="check2">I</label>
<input type="checkbox" id="check3" /><label for="check3">U</label>
</div>
http://jsfiddle.net/ftraian/cu8mS
最佳答案
参见修改后的Fiddle,我添加了jQuery和jQuery ui css http://jsfiddle.net/cu8mS/1/:
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>