JS動態綁定下拉單內容

function req00_Line1_onChange(obj) {     //if ($(obj).val() != "" && $(obj).val() != null) {     $.post("/Require/GetLineSelect", { pModelCode: $(obj).val() }, function (data) {         if (data != undefined && data != "" && data.lResult.length > 0) {             var SelHtml = "";             for (var i = 0; i < data.lResult.length; i++) {                 SelHtml += "<option value='" + data.lResult[i].line_lineNo + "'>" + data.lResult[i].line_lineNmae + "</option>";             }             $("#req00_Line2").html(SelHtml);         }         else {             return false;         }     });     //}

}

上一篇:ACdream 1112 Alice and Bob(素筛+博弈SG函数)


下一篇:HDU 5317 RGCDQ (数论素筛)