$('#comzwcf').combobox({ valueField: 'id', textField: 'text', }); $.ajax({ url: '/Provider/HandlerIrregularitiesType.ashx?method=list&type=政務處分', type: 'post', success: function (data) { if (data) { var themecombo2 = [{ "id": "-1", "text": "請選擇" }]; var reldata = eval(data); for (var i = 0; i < reldata.length; i++) { themecombo2.push({ "text": reldata[i].text, "id": reldata[i].id }); } $("#comzwcf").combobox("loadData", themecombo2); } } });