I have a combobox with textbox. here i need to create an object for an array in js through ajax. ex:
var countries = {};
countries.results = [
{id:'ZM',name:'Us'},
{id:'ZW',name:'Ksa'}
];
how can i create an object for an array through ajax,php?