JSFiddle - React, Tailwind, and code Playground

HTML

<select id="test1"></select>
<select id="test2"></select>

CSS

body {
    padding: 20px;
}

select {
    font-size: 16px;
}

JavaScript

function initDropdownList( id, min, max ) {
    var select, i, option;
    
    select = document.getElementById( id );
    for ( i = min; i <= max; i += 1 ) {
        option = document.createElement( 'option' );
        option.value = option.text = i;
        select.add( option );
    }
}

initDropdownList( 'test1', 10, 20 );
initDropdownList( 'test2', 100, 200 );