var json = $ht.form.ajaxS("fetchtStyleInfoAll", "","json");
if(json =="noRight"){
return;
}
$("#styleId").combobox({
data:json,
valueField:'id',
textField:'name',
editable:false,
onLoadSuccess: function () { //加载完成后,设置选中第一项
var val = $(this).combobox("getData");
for (var item in val[0]) {
if (item == "id") {
$(this).combobox("select", val[0][item]);
}
}
}
});
if(json =="noRight"){
return;
}
$("#styleId").combobox({
data:json,
valueField:'id',
textField:'name',
editable:false,
onLoadSuccess: function () { //加载完成后,设置选中第一项
var val = $(this).combobox("getData");
for (var item in val[0]) {
if (item == "id") {
$(this).combobox("select", val[0][item]);
}
}
}
});