加红色字部分

 

jsp

<input class="easyui-combobox"  />


js

整体关键代码示例如下:

  

$('#keshi').combobox({
url: '/ccewis/xffy/keshiList',
valueField: 'id',
textField: 'groupName',
multiple:true,
//width:tableWidth*0.17,
editable: true,
filter: function (q, row) {
var opts = $(this).combobox("options");
return row[opts.textField].indexOf(q) > -1;//将从头位置匹配改为任意匹配
},
onLoadSuccess: function () { //下拉框数据加载成功调用
var values = $(this).combobox('getValues').join(',');//获取选中的值的values
$(this).combobox('setValues',values.split(',')); //http://www.verydemo.com/demo_c110_i7529.html
    },
onSelect: function (rec) {
var keshiId = encodeURIComponent(rec.id);
//$('#visibleMan').combobox('clear');
$('#visibleMan').combobox('reload', '/ccewis/xffy/userList?keshiId=' + keshiId);
},
onChange: function (newValue, oldValue) {
if (newValue == "") {
$('#visibleMan').combobox('clear').combobox('reload', '/ccewis/xffy/userList');
}
}
});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-09
  • 2021-08-29
  • 2021-05-17
  • 2022-01-24
  • 2021-07-14
  • 2022-02-19
相关资源
相似解决方案