var option = ''; $.each(data, function (i, v) { option += "<option value='" + i + "'>" + v + "</option>"; }); $("#select").append(option);
var option = ''; $.each(data, function (i, v) { option += "<option value='" + i + "'>" + v + "</option>"; }); $("#select").append(option);