Can I hide the HTML5 number input’s spin box?
Asked 07 September, 2021
Viewed 421 times
  • 55
Votes

Is there a consistent way across browsers to hide the new spin boxes that some browsers (such as Chrome) render for HTML input of type number? I am looking for a CSS or JavaScript method to prevent the up/down arrows from appearing.

<input id="test" type="number">

20 Answer