JSFiddle - React, Tailwind, and code Playground
by danheberden
HTML
<select size="4" name="ListBox" multiple="multiple" id="ListBox">
<option value="32">32</option>
<option value="48">48</option>
</select>
Keep in mind this only handles the mouse event, but should get you on your way to making it work for your particular application.
JavaScript
(function() {
var content = ""
$("#ListBox").mousedown(function (e)
{
if( e.target.value !== content ){
alert("Change fired");
}
content = e.target.value;
});
})();