JSFiddle - React, Tailwind, and code Playground
by Glen Pike
HTML
<div id="container">
</div>
JavaScript
$(document).ready(function() {
var $select = $('<select/>');
var $options = [];
for(var i = 0;i < 20;i++) {
var $option = $('<option>')
$option.val(i).text('Option ' + (i + 1));
$options.push($option);// = $options.add($option);
}
$select.html($options);
$('#container').html($select);
})