Important message of caution
When using a mouse with a scrollwheel, be aware that scrolling with the cursor hovering over a type=number
textbox results in the number changing up or down.
Now this may be great in some situations, but imagine the following:
- Your website is a payment system
- You have an input field
<input type="number" id="moneyToSend" />
- You enter a value, then use the scroll wheel to move down the page
- You don't notice the number has changed.
- Now you've just sent your life savings to your friend.
See Disable scrolling on `<input type=number>` for solutions.