ui.selectmenu投掷'this.newelement.0'为null或不是对象
ui.selectmenu throwing 'this.newelement.0' is null or not an object
我正试图从这里实现ui.selectmenuhttp://filamentgroup.com/lab/jquery_ui_selectmenu_an_aria_accessible_plugin_for_styling_a_html_select/,但将其放置在jQuery对话框中。不确定这是否是冲突的根源。
HTML标记为:
<div id="selModeBox" title="Mode selection Form">
<label for="mode">Select modes:</label>
<select id="mode" name="mode">
<option value="v0" selected="selected">-- Make a Selection --</option>
<option value="v1">Mode 1.</option>
<option value="v2">Mode 2.</option>
</select>
</div>
要实现的Javascript:
jQuery(document).ready(function() {
$('#selModeBox').dialog({
modal: true
});
$('#selModeBox select').selectmenu();
$('#tabs').tabs();
});
javascript错误出现在加载时,指的是ui.selectmenu javascript代码的这一行(第108行):
this.element.click(function() {
this._refreshValue();
}).focus(function() {
this.newelement[0].focus();
});
有没有人经历过类似的事情,或者有任何补救的想法?
jQuery 1.8可能是由于尚未测试而导致问题,请参阅https://github.com/fnagel/jquery-ui/issues/261
如果问题在1.7.x中仍然存在,请打开新的问题(请参阅https://github.com/fnagel/jquery-ui/issues/61)
相关文章:
- 谷歌地图API-“;toGeoJson”;返回几何体为null的对象
- 验证对象是否为null Javascript/Angularjs
- 对象为null或IE9中存在未定义错误
- 如何计算一个对象中五个属性中有多少是非null的
- Microsoft JScript运行时错误:无法获取属性'的值;样式':对象为null或未定义
- javascript对象显示为null,但object.properties返回数据
- global.getElementById('..')为null或不是对象
- IE8错误:为null或不是对象,但仍然可以跟踪/控制台注销
- AJAX请求中的JSON对象为Null或空
- Highcharts无法设置属性'的值;要点':对象为null或未定义
- ui.selectmenu投掷'this.newelement.0'为null或不是对象
- 添加到序列化数组中的复杂对象在服务器端始终为 null
- 什么是 ClojureScript 类似地将不存在的对象值设置为 JavaScript 中的 null
- 最大查询返回带有sequelise.js的null对象
- 从JSON对象中删除jQuery和null对象
- 从客户端到服务器的SocketIO回调没有'不起作用(改为null对象)
- 迭代react元素中的undefined/null对象
- “Interiting"From null对象似乎不会影响性能
- Null对象中属性默认值的赋值
- 在js中捕获null对象