jquery easyui combobox 绑定不上值,请帮忙看看,谢谢!
html:贷款单位:<selectid="sdw"style="width:150px;"></select>//下拉框js:$(function(){$('#sdw')...
html:
贷款单位:<select id="sdw" style="width: 150px;"></select> //下拉框
js: $(function() { $('#sdw').combobox({
url: '/ashx/Combox.ashx?action=dkdw', //这里写绑定数据的路径 valueField: 'JSON_officecode', textField: 'JSON_officename', editable: false
}) });
ashx:
string result = ""; string sql = "select officecode,officename from officetable";
DataTable dt = DBHelper.GetDataTable(sql);
result = JsonHelper.CreateJsonParameters(dt);
context.Response.Write(result); 展开
贷款单位:<select id="sdw" style="width: 150px;"></select> //下拉框
js: $(function() { $('#sdw').combobox({
url: '/ashx/Combox.ashx?action=dkdw', //这里写绑定数据的路径 valueField: 'JSON_officecode', textField: 'JSON_officename', editable: false
}) });
ashx:
string result = ""; string sql = "select officecode,officename from officetable";
DataTable dt = DBHelper.GetDataTable(sql);
result = JsonHelper.CreateJsonParameters(dt);
context.Response.Write(result); 展开
展开全部
貌似写法不对
<input id="cc" name="dept" value="aa">
$('#cc').combobox({ url:'combobox_data.json', valueField:'id', textField:'text'});
追问
谢谢了,已经弄好了!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询