JSFiddle - React, Tailwind, and code Playground

HTML

<select class="select_exercise">
    <option class="option_exercise">Example 1</option>
    <option class="option_exercise">Example 2</option>
</select>

JavaScript

$("option.option_exercise").on("change","option.option_exercise",function()
{
    alert("i am changing");
});