With the release of iOS5, Apple has added their own validation to input type=number form fields. This is causing some issues; see this question below which sums it up:
Although input type=tel works to bring up a numeric keypad on the iphone, it's the telephone keypad which has no decimal points.
Is there a way to set the numeric keypad as default using html/js? This not an iphone app. At minimum I need numbers and a decimal point in the keypad.
Update
Number input fields in Safari 5.1/iOS 5 only accept digits and decimal points. The default value for one of my inputs is $500,000. This is resulting in Safari showing a blank input field because $ , % are invalid characters.
Furthermore, when I run my own validation onblur
, Safari clears the input field because I'm adding a $ to the value.
Thus Safari 5.1/iOS5's implementation of input type=number has rendered it unusable.
jsfiddle
Try it here - http://jsfiddle.net/mjcookson/4ePeE/ The default value of $500,000 won't appear in Safari 5.1, but if you remove the $ and , symbols, it will. Frustrating.