思路:查看API看combobox有没有类似方法或属性,结果没有,

那我没可以几个方法组合使用:

          
            $('#cmbSettleOffice').combobox({
                required: true,
                editable: true,//开启编辑模式
                hasDownArrow: false,//隐藏下拉框按钮
                panelHeight: 1//下拉框高度设置1,彻底看不到下拉框
            });
做个判断,再把combobox属性修改下即可
       $('#cmbSettleOffice').combobox({
                required: false,
                editable: true,//开启编辑模式
                hasDownArrow: true,//隐藏下拉框按钮
                panelHeight: 150
            });

相关文章:

  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
相关资源
相似解决方案