Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[Question] Only numeric password input #7201

Closed
demonslord opened this Issue · 3 comments

3 participants

@demonslord

Hello,

Is there any possibility to have the input as "numeric/password" (shows numeric keyboard in android)?

Attribute pattern works fine only in iOS.

Best Regards.

@jaspermdegroot
Collaborator

@demonslord

This is not something we can control with jQuery Mobile, so it depends on the platform. In the future you should be able to resolve this with inputmode="numeric" but it doesn't work yet on Android. At least not in combination with ```type="password".

@coliff

As @uGoMobi mentioned inputmode="numeric" is a worthwhile adding, Firefox for Android makes use of that. You could consider using type="tel" it's semantically wrong, but I've seen many other sites use this as a workaround. For the pattern attribute did you try pattern="\d*" ? That should work for iOS.

@demonslord

@coliff

Attribute pattern works fine in iOS :)

Best Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.