JSFiddle - React, Tailwind, and code Playground

Dynamic load combo

by Dave

HTML

<select id="CuisineList"></select>

JavaScript

var cuisines = ["","Chinese","Indian","aaa"];     

var sel = document.getElementById('CuisineList');
for(var i = 0; i < cuisines.length; i++) {
    var opt = document.createElement('option');
    opt.innerHTML = cuisines[i];
    opt.value = cuisines[i];
    sel.appendChild(opt);
}