【发布时间】:2014-12-07 06:18:49
【问题描述】:
抱歉标题。
如何将此代码从下拉列表修改为输入文本框,这样输入文本框将由 getCustomer.php 代码填充,而不是填充下拉列表?
function getOrgCodes() {
$.ajax({
url: 'getCustomer.php',
dataType: 'json'
})
.done(function(orgInfo) {
$(orgInfo).each(function(i, orgdisplay) {
$('<option>').val(orgdisplay.ORGANIZATION).text(orgdisplay.ORGANIZATION).appendTo( $('#deptId') );
})
});
}
【问题讨论】: