JSFiddle - React, Tailwind, and code Playground
HTML
<input type="number" id="n" value="5" step=".5" />
JavaScript
$(":input").bind('keyup mouseup', function () {
alert("changed");
});
<input type="number" id="n" value="5" step=".5" />
$(":input").bind('keyup mouseup', function () {
alert("changed");
});