JSFiddle - React, Tailwind, and code Playground

by bluey

HTML

<div class="dropdownPanel">
    <select name="countryList" id="countryList">
        <option value="" disabled selected>SELECT</option>
        <option value="argentinia">Argentinia</option>
        <option value="brazil">Brazil</option>
        <option value="chile">Chile</option>
        <option value="mexico">Mexico</option>
        <option value="venezuela">Venezuela</option>
    </select>
    <button class="cancel">cancel</button>
    <button class="confirm">confirm</button>
</div>

JavaScript

$('#countryList').change( function() {
        $('.modal').show();
         alert("success"); //test
    return false;
});