• ComboBox的基本用法


    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对象

    }

    })

  • 相关阅读:
    完成卸载vs2010后再安装
    图片集合,可用作商品列表
    无可奈何花落去
    Uncaught TypeError: Cannot read property 'msie' of undefined
    CodeGenerator.cs
    年月日控件
    SQL GETDATE()日期格式化函数
    股票操作要点
    Rust 错误处理, 包裹错误
    使用 Rust 实现并查集
  • 原文地址:https://www.cnblogs.com/xplj2013/p/7802937.html
Copyright © 2020-2023  润新知