[英]Support for input type number in iOS devices (iPad)
i have following snippet to be used: <input class="myRiderbox riderfonts" data-role="none" id="pre" type="number" name="quantity" min="1" max="5" value="" required>
我有以下要使用的代码段:
<input class="myRiderbox riderfonts" data-role="none" id="pre" type="number" name="quantity" min="1" max="5" value="" required>
But, does this work on iPad and android tablet? 但是,这可以在iPad和android平板电脑上使用吗? I have tested on iOS 6 iPad simulator and mozilla.
我已经在iOS 6 iPad模拟器和mozilla上进行了测试。 It did not work.
这没用。 So what is the alternative for this?
那么,另一种选择是什么呢?
Thanks 谢谢
用这个:
<input type="number" pattern="\d*"/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.