Our client wants us to display numeric keyboard for an input field so basically I created a field like:
<input type="number" name="quantity" step=".01" value="0.00" />
However, Galaxy Tablet erases "." and merges numbers before and after it, also disables "." in the keyboard.
Is there another way to solve this issue or display numeric keyboard in input field when using type="text"?
Note:
I tried using pattern attribute (which works on iPhone).
I tested this issue on various Android devices with Android 2.1+. I did not encounter this error on any other HTC and Samsung devices.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…