jQuery UI MultiSelect IE 8问题 [英] Jquery ui MultiSelect IE 8 issue

查看:148
本文介绍了jQuery UI MultiSelect IE 8问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用最新的 Jquery UI Multiselect 可以在firefox中正常工作,镀铬

Using the latest Jquery UI Multiselect it works fine in firefox, chrome

但是在IE8中,这些选项为空白,如此处

but in IE8 the options are blank as shown here

我正在使用以下库 jquery-1.7.2.min.js jquery-ui-1.8.20.custom.min.js

I am using the following libraries jquery-1.7.2.min.js jquery-ui-1.8.20.custom.min.js

任何想法,将不胜感激.

Any ideas, would be much appreciated.

推荐答案

已解决, 有一个问题,其中包含将选项添加到IE 8中的JQuery中的列表的方式 我正在使用

Solved it, There is an issue with the way you add the options to a list in JQuery in IE 8 I was using

$('#foldersBUSelect').append( new Option(folderName,folderID,false,nowSelected) );

当我应该执行IE 8喜欢的以下操作

when I should be doing the following which IE 8 likes

$("#foldersBUSelect").append( "<option selected='selected' value='" + folderID + "'>" + folderName + "</option>" );

这篇关于jQuery UI MultiSelect IE 8问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆