JSFiddle - React, Tailwind, and code Playground

by darkajax

HTML

<select id="select_a">
    <option value='1'>woot1</option>
    <option value='2'>woot2</option>
    <option value='3'>woot3</option>
    <option value='4'>woot4</option>
</select>
<select id="select_b">
    <option value='1'>notwoot1</option>
    <option value='2'>notwoot2</option>
    <option value='3'>notwoot3</option>
    <option value='4'>notwoot4</option>
</select>

JavaScript

$("#select_b").change(function (){
    alert($("#select_a").children('option:selected').text());
})