Drop Down Select Option List Generator

HTML drop down select option list generator. year select option list, month option select list, date select option list, country names select option list, phone code number select option list, number select option list,

Click the 'Re-edit select' button You can add your old HTML drop-down select code to add or remove more options and sort names.

Demo:
Demo

Set Custom Styles

Add Attributes

Numbers Drop Down Select Using JavaScript

Click on the edit (pen) icon and try it yourself.
HTML JavaScript
<select id="number" name="number"></select>

<script>
(() => {
    let number_start = 1;
    let number_end = 20;
    let number_selected = 10;
    let option = '';
    option = '<option>Select number</option>'; // first option

    for (let i = number_start; i <= number_end; i++) {
        let selected = (i === number_selected ? ' selected' : '');
        option += '<option value="' + i + '"' + selected + '>' + i + '</option>';
    }

    document.getElementById("number").innerHTML = option;
})();
</script>