JSFiddle - React, Tailwind, and code Playground

HTML

<select id="select1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
</select>

JavaScript

$(document).ready(function () {
    $("#select1").on("change", function () {
        var currentValue = $(this).val();
        openreport(currentValue);
    });
});

function openreport(whatever) {
    console.log(whatever);
}