问题
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