I am getting this list from server(php):
["Ak-Bulak","Balykchy","Batken"]
how can i access it and put into selects options thru js, what i tried is:
for (var i in data) {
$('#cities').append('<option>'+ data[i] +'</option>');
}
it putting every chars as one option: <option>[</option>
, <option>"</option>
...
how can i access each element here? not each char..