日期:2014-05-17 浏览次数:20636 次
$.ajax({
type: 'POST',
url: "${base}/smallLine/findSmallByBigLineId.do",
data: "bigLineId="+bigLine,
success: function(data){
$("#smallLineId").empty();
$("#smallLineId").html("");
var options = "";
for ( var i = 0; i < data.smallLinesList.length; i++) {
var smallLine = data.smallLinesList[i];
options+="<option value='"+smallLine.id+"'>"+smallLine.name+"</option>";
}
$("#smallLineId").append(options);
$("#smallLineId").html(options);
$("#smallLine").attr("style","");
},
dataType: "json"
});
var options = "";
for ( var i = 0; i < data.smallLinesList.length; i++) {
var smallLine = data.smallLinesList[i];
options+="<option value='"+smallLine.id+"'>"+smallLi