JSFiddle - React, Tailwind, and code Playground

HTML

<select size="8" name="choices" id="single_choices">
    <option value="First Choice">First Choice</option>
    <option value="Second Choice">Second Choice</option>
</select>

<select size="8" name="choices" multiple="" id="multiple_choices">
    <option value="First Choice">First Choice</option>
    <option value="Second Choice">Second Choice</option>
</select>

JavaScript

var change_func = function() {
    alert("change");
}
    
var blur_func = function() {
    alert("blur");
}

$('#single_choices').change(change_func);
$('#single_choices').blur(blur_func);

$('#multiple_choices').change(change_func);
$('#multiple_choices').blur(blur_func);