I have an input control on a webpage similar to this:
<input type="number" name="value" />
If this control has focus and I hit either the up or down arrow keys, then the value in the textbox increments or decrements (except in IE).
I would like to disable this feature, preferably using CSS. I already have the spinner buttons removed using CSS. I realize I could use JavaScript to capture the keydown
event, but I want to allow the arrow keys to continue to scroll the page up or down.
input type="number"
when you don’t want its basic functionality? – Scholzadd step=0 and you should be ok
doesn't work unfortunately – Hilleary