Quantcast
Channel: User Simon_Weaver - Stack Overflow
Viewing all articles
Browse latest Browse all 116

Answer by Simon_Weaver for Can I hide the HTML5 number input’s spin box?

$
0
0

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.


Viewing all articles
Browse latest Browse all 116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>