Jquery ui MultiSelect IE 8 issue

心已入冬 提交于 2019-12-11 04:51:10

问题


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

but in IE8 the options are blank as shown here

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.


回答1:


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) );

when I should be doing the following which IE 8 likes

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


来源:https://stackoverflow.com/questions/12304370/jquery-ui-multiselect-ie-8-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!