When using the input
tag as type="tel"
the keyboard on touch devices correspond with the type of input box. However, I wish to keep the value in the input
tag hidden (as with the password
type).
The normal behaviour would be to have each character hidden as the user is typing.
<input type="tel">
input [type="tel"] {
-webkit-text-security: disc;
}
This solution works in most browsers, but not in IE.
<input type="password" pattern="[0-9]*" inputmode="numeric">
This solution doesn't work as expected.
Is there any way to accomplish what i'm trying to do?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…