JSFiddle - React, Tailwind, and code Playground
by pettys
HTML
html() <select id="html"></select>
<br/>
text() <select id="text"></select>
JavaScript
// options should be populated with text(), not html()
$(function() {
var ops = [
"pick a range",
"100<range>2000",
"etc"
];
$.each(ops, function(idx, item) {
$("#html").append($("<option></option>").val(item).html(item));
$("#text").append($("<option></option>").val(item).text(item));
});
});