JSFiddle - React, Tailwind, and code Playground

by serio

HTML

<div class='romg'>
<select>
<option>pee</option>
<option>poo</option>
<option>barf</option>
</select>
</div>

JavaScript

$(function() {

    var romg = $('.romg');
    var select = romg.first();

    function romgSelect(e) {
        console.log(select.find('option:selected').text());
    };

    romg.click(romgSelect);
    select.change(romgSelect);

});