JSFiddle - React, Tailwind, and code Playground

HTML

<input type="number" id="n" value="5" step=".5" />

JavaScript

$(":input").bind('keyup mouseup', function () {
    alert("changed");            
});