JSFiddle - React, Tailwind, and code Playground

by Nick Hulea

HTML

<select id="issue">
    <option>Something</option>
    <option>Other</option>
</select>

JavaScript

$(function() {
    $('#issue').change(function() {
        var reboot_confirm = ["Server is unreachable", "Other"]; 
        var issue = $(this).children('option:selected').text();
        if ($.inArray(issue, reboot_confirm) != -1) {
            alert(issue);
        }
    });
});