我的代码:
function onLoad(e)
{
var element = document.getElementById('cmbGender');
$.ajax({ type: "POST",
url: "@(Url.Action("LoadGenderNames", "Search"))",
success: function (data) {
// How to add the "data" object items in to the combo box here.
},
});
}
如何将项目(对象)添加到函数(数据)内的组合框中。谢谢。
编辑:这是 Telerik 组合框 Html.Telerik().ComboBox() .Name("cmbGender")