Sorry for the title.
How do I modify this code from dropdown to input textbox in such that instead of populating dropdown, input textbox will be populated from getCustomer.php code?
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') );
})
});
}