jquery datatable 怎么解决select的ie兼容性
1个回答
展开全部
function InitSelectOptions(ctnSelector, jsonData, txtField, valField, strOptions) {
if ($(ctnSelector).length == 0) { return false; };
$(ctnSelector).html('');
var optList = strOptions;
if (typeof (jsonData) != undefined) {
for (var jitem in jsonData) {
if (jitem == "insertAt" || jitem == "汪睁removeAt" || jitem == "moveTo") {
continue; //解决flareJ.Base.js导致的问题。
}
optList += "<option value='"缓渗 + jsonData[jitem][valField] + "'>" + jsonData[jitem][txtField] + "<困哪岁/option>";
}
}
$(ctnSelector).html(optList);
}
if ($(ctnSelector).length == 0) { return false; };
$(ctnSelector).html('');
var optList = strOptions;
if (typeof (jsonData) != undefined) {
for (var jitem in jsonData) {
if (jitem == "insertAt" || jitem == "汪睁removeAt" || jitem == "moveTo") {
continue; //解决flareJ.Base.js导致的问题。
}
optList += "<option value='"缓渗 + jsonData[jitem][valField] + "'>" + jsonData[jitem][txtField] + "<困哪岁/option>";
}
}
$(ctnSelector).html(optList);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询