JSFiddle - React, Tailwind, and code Playground
by oduska
HTML
<select></select>
JavaScript
var array = ['one', 'two', 'three'];
var $select = $('<select>');
$select.find('option').remove();
$.each(array, function(key, value) {
$('<option>').val(key).text(value).appendTo($select);
});