JSFiddle - React, Tailwind, and code Playground
by sushanth009
HTML
<select id="dropdown1" />
JavaScript
$(function(){
var html = '';
for(var i =1;i<=3;i++){
html += '<option value="'+ i +'"> Location ' + i + '</option>';
}
$('#dropdown1').append(html);
});