On Firefox 28, I'm using <input type="number">
works great because it brings up the numerical keyboard on input fields which should only contain numbers.
In Firefox 29, using number inputs displays spin buttons at the right side of the field, which looks like crap in my design. I really don't need the buttons, because they are useless when you need to write something like a 6~10 digit number anyway.
Is it possible to disable this with CSS or jQuery?
input type text
? – Mattinstype="number"
. You can usetype="text"
and thepattern
attribute to set a regex to make sure it's a number. – Susettetype="number"
is required for mobile browsers to show the numeric keyboard instead of the full keyboard. – Hexachord<input type="tel">
it's only numbers and it doesn't include spinners. – Elletttype="text"
is a bad idea because touch devices will show the wrong keyboard. – Subcutaneoustype="text"
is a bad idea, you will have to make sure you enter only numeric characters and also you will have to use separate validation if you want to make use of themin
ormax
attributes – Nadbus