Is there any possibility to have the input as "numeric/password" (shows numeric keyboard in android)?
Attribute pattern works fine only in iOS.
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".
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.
Attribute pattern works fine in iOS :)