I can't get the object value to the html id input field.
JSON return
// response from the call
{
"COLUMNS": ["cityname", "stateabbr"],
"DATA": [
["Culver City", "CA"]
]
}
$.each(response, function(index, zc) {
$("#cityname").append([zc[0]]);
$("#stateabbr").append([zc[0]]);
});
you have to to fix for each. try this instead
$("#cityname").val(response.DATA[0][0]);
$("#stateabbr").val(response.DATA[0][1]);