function appAndBuz(appName,buzName,areaCenterCode){
//appName,buzName下拉框的值start
$.ajax({
type: "POST",
url: "<%=basePath%>/logs/queryLogAppAndBuz.action",
dataType : "json",
success : function(data0) {
var listAppNameSt = data0.listAppNameSt;
var listbuzNameSt = data0.listBuzNameSt;
var listAreaCenterCodeSt = data0.listAreaCenterCodeSt;
var htmlAppName = "";
if (listAppNameSt.length > 0) {
for (var int = 0; int < listAppNameSt.length; int++) {
var name = listAppNameSt[int];
if(appName==name){
htmlAppName += "<option selected='selected' value="+name+">"+name+"</option>";
}else{
htmlAppName += "<option value="+name+">"+name+"</option>";
}
}
$("#appName").html(htmlAppName);
}
var htmlBuzName = "";
if (listbuzNameSt.length > 0) {
for (var int = 0; int < listbuzNameSt.length; int++) {
var name = listbuzNameSt[int];
if(buzName==name){
htmlBuzName += "<option selected='selected' value="+name+">"+name+"</option>";
}else{
htmlBuzName += "<option value="+name+">"+name+"</option>";
}
}
$("#buzName").html(htmlBuzName);
}
var areaCenterCodeHtml = "";
if (listAreaCenterCodeSt.length > 0) {
for (var int = 0; int < listAreaCenterCodeSt.length; int++) {
var name = listAreaCenterCodeSt[int];
if(areaCenterCode==name){
areaCenterCodeHtml += "<option selected='selected' value="+name+">"+name+"</option>";
}else{
areaCenterCodeHtml += "<option value="+name+">"+name+"</option>";
}
}
$("#areaCenterCode").html(areaCenterCodeHtml);
}
}
});
//appName,buzName下拉框的值end
}
相关文章
- option 选不中问题
- ng-options 如何实现其中一项option禁选
- 算法_php猴子选大王_约瑟夫问题
- 【转】ASP.NET的OnClientClick与OnClick事件【解决了“识别用户在对话框里面选yes或no的问题”】
- POJ3750: 小孩报数问题+一道经典约瑟夫问题(猴子选大王)
- JMeter使用中遇到的问题:Jmeter Debug - "Unrecognized VM option '+HeapDumpOnOutOfMemoryError"(转载)
- bzoj2441 [中山市选2011]小W的问题(debug中)
- BZOJ2441: [中山市选2011]小W的问题
- bzoj 2441 [中山市选2011]小W的问题
- 有关LCD片选信号,时钟信号,复位信号的问题。