I am writing because I have a problem with the input type password.
The problem is that I want only numbers in password. It means iPhones should enable the numeric keyboard, not the complete keyboard with letters. I’ve tried for look an answer for this question, but I’ve not found any solution.
Thanks in advance.
Try adding
_zipor_phoneto the end of your input name – iOS should see it as requiring the numeric keyboard. Not sure if this works with atype="password"field, you’ll have to try.Update
As per the link in Matt’s comment, the best way to specify the numeric keyboard is to use
type="number"– but that won’t occlude the entry like a password field would. It’s up to you!