combobox
设置不可输入:
var currentDate = new Date();
var currentY = currentDate.getFullYear();
var dateList = new Array();
for (i = 0; i < 5; i++) {
var year = i + 1;
dateList[i] = {
'id' : 2010 + year,
'text' : 2010 + year + '年'
};
}
$("#" + divid).combobox({
data : dateList,
editable : false,//
禁止编辑
valueField : 'id',
textField : 'text',
});
$("#" + divid).combobox('setValue', currentY);