I'm working on a mobile project for Android using PhoneGap, and testing with Samsung Galaxy S2 Skyrocket, android version 4.0.4 . Right now I have a html input field that only accepts numeric password, so first I set the input like this
<input type="password" id="Password"/>
it gives me the alphabetical keyboard in Android, but I want the show up keyboard to be numeric.
So I change my code to be
<input type="tel" id="Password"/>
and use CSS to mask the password
<style type="text/css">
#Password {
-webkit-text-security: disc;
}
</style>
but the masking is not working same as the type="password", it will mask the passwords when the password box is not getting focused. If it is getting focused, password will not be masked by disc, so it will be shown.
Is there any way I can make the numeric keyboard shown and let the password to be masked all the time?
Thanks.