JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
</head>
<body>
<select id="food-list">
</select>
</body>
</html>
JavaScript
var food =['Sandwish', 'Hamburguer', 'Tacos']
var string = '';
jQuery.ajax({
url: "http://191.237.68.123/akipro/config.dll/datasnap/rest/TConfigInfo/towns/10005726",
type: "POST",
data : { 'data1':'something'
},
success: function (item){
if (food) {
for (var x = 0; x < food.length; x++) {
var filler = '<option value=' + food[x] + '">' + food[x] + '</option>';
string +=filler;
}
$("#food-list").html(string);
}
}
});