<input type="text" value="Text">
<!--Input type number-->
<input type="number" value="10" id="myInputWithStepper">
<!--Related stepper-->
<input-stepper for="#myInputWithStepper">
<button></button>
<button></button>
</input-stepper>
Just listen on your <input>
elements as you would do normally. You can use value
property and input
event as defined by W3.