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 ).ligerComboBox(combo_set);//给指定的输入框元素添加ligerComboBox对象

 

}

})

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-02-24
  • 2021-10-12
  • 2022-12-23
  • 2021-10-16
  • 2022-02-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2021-09-23
  • 2021-07-13
  • 2021-08-31
相关资源
相似解决方案