A client needs to have a (US) Zip Code field in a website, however this field can only accept numbers, 5 digits, and must trigger the numeric keypad in both iOS and Android.
Additionally must work with external numberpads (on laptops)...and must be a text field.
It seems like every approach I try (keyCode, pattern, etc) fails on one browser or device or another...any recommendations?
Considerations:
1) Cannot use plugins
2) Do not need to accept xxxxx-xxxx (just first 5)
EDIT: This is not in a WebView which could provide additional resources to triggering the numeric keypad. In addition this needs to remain a text field (cannot change to tel or number).
Additionally the question that people believe this to be a duplicate of does not have an answer marked, so, it does not have a resolution either.
To be specific, this needs to work across, Chrome, Firefox, IE, iOS, and Android.