87,923
社区成员
发帖
与我相关
我的任务
分享
<td id="max_to_min_money">
</td>
//查找费项区间
function selectrate(data){
$.ajax({
type : 'POST',
url : "/posp/report/dayfindrate.action",
data : {
"busi_id":data
},
dataType : 'Json',
success : function(msgs) {
var $dom_one = "<select style='width:85px;' id=\"money_one\" name=\"money_one\" class = \"Winstar-input120\" >";
var $dom_two = "<select style='width:85px;' id=\"money_two\" name=\"money_two\" class = \"Winstar-input120\" >";
console.info(JSON.parse(msgs));
$.each(JSON.parse(msgs),function(index,data){
$dom_one += "<option value=\""+data.rate_id+"\">"+data.money1+"</option>" ;
$dom_two += "<option value=\""+data.rate_id+"\">"+data.money2+"</option>" ;
});
$dom_one += "</select>";
$dom_two += "</select>";
var $max_to_min_money = $("#max_to_min_money");
var $dom = $($dom_one + $dom_two);
$max_to_min_money.html($dom);
change_selected_editable("money_one");
change_selected_editable("money_two");
},
headers : {}
});
}
function change_selected_editable(id){
$("#"+id+"").editableSelect(
{
bg_iframe: true,
case_sensitive: false,
items_then_scroll: 10 ,// If there are more than 10 items, display a scrollbar
isFilter:false //If set to true, the item will be filtered according to the matching criteria.
}
);
}