admin管理员组文章数量:1221752
In my angularjs app, i have two input fields with type="text"
, pls see the plunkr here.
The problem is that the currency formatting is not possible for input type="number"
.
So it it possible to bring up Numeric keyborad for mobile devices when the focus move to input type="text"
?
Please help
In my angularjs app, i have two input fields with type="text"
, pls see the plunkr here.
The problem is that the currency formatting is not possible for input type="number"
.
So it it possible to bring up Numeric keyborad for mobile devices when the focus move to input type="text"
?
Please help
Share Improve this question edited Nov 12, 2014 at 9:23 Rory McCrossan 338k41 gold badges320 silver badges351 bronze badges asked Nov 12, 2014 at 9:21 IrshuIrshu 8,4468 gold badges55 silver badges66 bronze badges3 Answers
Reset to default 17use "tel" I'm sure this will solve your problem. this will allow you to input alphabates also but it will open numeric keypad
<input type="tel">
Add pattern to it.
<input type="text" pattern="\d*">
Try the below. Additionally you can add "ng-pattern" to manage validation messages etc.
<input type="text" pattern="[0-9]*">
本文标签:
版权声明:本文标题:javascript - How to force mobile browsers to pull out numeric keyboard for input type="text"? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1739329190a2158396.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论