JSFiddle - React, Tailwind, and code Playground

HTML

<select id="mySelect">
<option>1</option>
<option>2</option>
<option>3</option>
</select>

JavaScript

var textArr = $("#mySelect").map(function() {
        return $(this).text();
    }).get();
    alert(textArr);