I've searched through the websites that I found the following.
Using html5, we can trigger numeric keyboard with effortless like following,
<input type='tel' />
<input type='number'/>
<input type='text' pattern='some pattern' /> (This will work in IOS and not in android)
But I am using the autoNumeric plugin to format/restrict the user input if as digits. As per the documentation of autoNumeric plugin (http://www.decorplanit.com/plugin/), autoNumeric won't work if input type='tel/number' . I tried and yes it doesn't work.
Here my requirement is,
How to enable/trigger numeric keyboard in mobile/ipad/iphone without html5 ?
Or
Is there any jquery plugin to enable/trigger numeric keyboard in mobile/ipad/iphone without html5 and with autoNumeric js (autonumeric js)?
As per the documentation, Version 1.9.19
added support for <input type='tel' />
So, why not use that?
Official workarounds from autoNumeric.js are
<input type="text" pattern="\d*">
Currently works on iOS only<input type="tel" pattern="\d*">
Should work on most mobile browsers - on android devices you may get the pause and wait buttons.If you need decimal digits, you may modify the pattern to [\d\.]*
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With