var url=""/获取数据的url地址
var param =new Object();//参数
$.post(url,param,function(data){//回掉函数
if(data){
var combo_set = new Object();
combo_set['selectBoxHeight'] = 195;
combo_set['selectBoxWidth'] = 100;
combo_set['valueField'] = 'code';
combo_set['textField'] = 'title';
combo_set['hideGridOnLoseFocus'] = true;
combo_set['autocompleteAllowEmpty'] = true; //空格
combo_set['onSelected'] = function (newvalue){
//当选中时触发事件
//$('#'+id).empty();--------------------清空指定的元素(会把表单元素也清空了)
//$('#'+id).append('<input id="B_JYPH" class="w_90_p" type="text">');----------添加表单元素到指定的元素中
};
combo_set['data'] = data['Rows'];//设置数据
var priceareaBox = $("#B_JGQJ").ligerComboBox(combo_set);//给指定的输入框元素添加ligerComboBox对象
}
})