获取select option的值
var supplierValue = $("#supplier_id").val();
var supplierName = “”;
var supplierId = “”;
if(supplierValue && supplierValue.indexOf(",") > 0){
var supplierValueArr = supplierValue.split(",");
supplierName = supplierValueArr[1];
supplierId = supplierValueArr[0];
}
for(i = 0;i < data.length; i++){
optionHtml +=’’+ data[i].supplier_name +’’;
}