Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS5 show numeric keypad by default without using type="number" or type="tel"
    primarykey
    data
    text
    <p>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:</p> <p><a href="https://stackoverflow.com/questions/7833257/input-type-number-new-validation-removes-leading-zeros-and-formats-number-in-s">Input type=&#39;number&#39; new validation removes leading zeros and formats number in Safari for iPhone iOS5 and latest Safari for Mac</a></p> <p>Although input type="tel" works to bring up a numeric keypad on the iphone, it's the <strong>telephone keypad</strong> which has no decimal points.</p> <p>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.</p> <p><strong>Update</strong></p> <p>Number input fields in Safari 5.1/iOS 5 only accept digits and decimal points. The default value for one of my inputs is <strong>$500,000</strong>. This is resulting in Safari showing a blank input field because $ , % are invalid characters.</p> <p>Furthermore, when I run my own validation <code>onblur</code>, Safari clears the input field because I'm adding a $ to the value.</p> <p>Thus Safari 5.1/iOS5's implementation of input type="number" has rendered it unusable.</p> <p><strong>jsfiddle</strong></p> <p>Try it here - <a href="http://jsfiddle.net/mjcookson/4ePeE/" rel="nofollow noreferrer">http://jsfiddle.net/mjcookson/4ePeE/</a> The default value of $500,000 won't appear in Safari 5.1, but if you remove the $ and , symbols, it will. Frustrating.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload