cannot call methods on button prior to initialization; attempted to call method 'toggle' 解决
来源:互联网 发布:c4d r18 for mac迅雷 编辑:程序博客网 时间:2024/05/16 04:59
在bootstrap 3.0 中使用 radio button
http://v3.bootcss.com/javascript/#buttons
<div class="btn-group" data-toggle="buttons"> <label class="btn btn-primary"> <input type="radio" name="options" id="option1"> Option 1 </label> <label class="btn btn-primary"> <input type="radio" name="options" id="option2"> Option 2 </label> <label class="btn btn-primary"> <input type="radio" name="options" id="option3"> Option 3 </label></div>
出现 这个错误
cannot call methods on button prior to initialization; attempted to call method 'toggle'
表现情况是 按钮无法选择。
解决办法和产生原因。
这个问题是由于bootstrap 和 jquery.ui 冲突引起的。
解决办法 调整载入的js顺序,使jquyer.ui 插件先载入。然后再载入 bootstrap
http://stackoverflow.com/questions/13235578/bootstrap-radio-buttons-toggle-issue
- cannot call methods on button prior to initialization; attempted to call method 'toggle' 解决
- cannot call methods on button prior to initialization; attempted to call method 'loading'.
- cannot call methods on masonry prior to initialization; attempted to call method 'appended' 瀑布流
- cannot call methods on dialog prior to initialization; attempted to call method 'close'
- cannot call methods on dialog prior to initialization; attempted to call method 'close'
- Uncaught Error: cannot call methods on dialog prior to initialization; attempted to call method 'clo
- Uncaught Error: cannot call methods on fileupload prior to initialization; attempted to call method
- cannot call methods on tooltip prior to initialization; attempted to call method 'hide'
- cannot call methods on tooltip prior to initialization; attempted to call method 'close'(…)
- 解决Error: cannot call methods on tabs prior to initialization; attempted to call method 'disable'的方法
- Error: cannot call methods on draggable prior to initialization; attempted to call
- jquery.min.js:4 Uncaught Error: cannot call methods on dialog prior to initialization; attempted to
- Uncaught cannot call methods on listview prior to initialization; 在刷新动态内容时报错的解决方案
- 在jquerymobile实现listview局部渲染的方法: listviewcannot call methods on listview prior to initialization; att
- bootstrap3.0关于button方法的attempted to call method 'loading'问题
- 解决Call to method of static java.text.DateFormat
- 解决Call to method of static java.text.DateFormat
- 解决Call to unavailable function 'system': not available on iOS
- CODE 104: Divide Two Integers
- android手机的刷机
- 网页编码就是那点事
- C++/C const问题
- Java学习第六课 JAVA 文件操作
- cannot call methods on button prior to initialization; attempted to call method 'toggle' 解决
- CG学习prepare
- 数据库学习第四篇(对基本表数据的查询2)
- 学习autotools
- MFC 弹出窗口MessageBox的使用
- C++ 随机数生成
- Objective-C特点及特征
- C/C++中产生随机数(rand,srand用法)
- SQL Syntax - how to group by interval