0
点赞
收藏
分享

微信扫一扫

jquery easy ui combobox后台处理完数据默认选中


$("#comb").combobox({
  url:"<%=request.getContextPath()%>/codeList.do",
  valueField:"codeId",
  textField:"codeName",
  onLoadSuccess:function(){
   var data=$(this).combobox('getData')[0];
   var vf = $(this).combobox('options').valueField;
    if(data){


$('#comb').combobox('setValue',data.codeName);
    }
  }
});

举报

相关推荐

0 条评论