$('#AA').combobox({
url:'${pageContext.request.contextPath}/Combobox!getComboboxType.action?dic=='1000',
valueField: 'AAid',
textField: 'AAname',
editable:false,
panelHeight:'auto',
onLoadSuccess: function () { //加载完成后,设置选中第一项
var val = $(this).combobox("getData");
for (var item in val[0]) {
if (item == "AAid") {
$(this).combobox("select", val[0][item]);
}
}
}
});
combobox加载完成后,设置选中第一项
猜你喜欢
转载自blog.csdn.net/weixin_38218338/article/details/81865577
今日推荐
周排行