JSFiddle - React, Tailwind, and code Playground

by jeffgw

HTML

<label>Age</label>
<select id="select"></select>

JavaScript

$(function() {

for (i = 18; i < 76; i++) {
$('#select').append('<option value="'+ i +'">'+i+'</option>');
}

});