0

In <input type="number"> you can by default increase/decrease number from click arrow up and arrow down is there a way to remove this behavior?

Note: I don't talk about the arrow in the input I talk about click arrow up and arrow down in the keyboard

shyammakwana.me
  • 5,562
  • 2
  • 29
  • 50
Faisal
  • 1
  • 4
  • Use text input. that's the solution. – shyammakwana.me Jul 09 '20 at 10:09
  • In your initial sentence you talk about _clicking_ the up an down arrows in the input, but then in your note you're talking about disabling the arrow keys (from the keyboard), are you talking about disabling arrow keys on the keyboard or disabling the up/down buttons within the input field itself? – Nick Parsons Jul 09 '20 at 10:12
  • It talks about the scrolling but you may update it accordingly for keyboard events. https://stackoverflow.com/questions/9712295/disable-scrolling-on-input-type-number – Ashutosh Kumar Jul 09 '20 at 10:13
  • when you have input type="number" if you click up arrow or down arrow the number increase or decrease I want to disabled that, and want to use input number not text. – Faisal Jul 09 '20 at 10:31

0 Answers0