Support for input type number in iOS devices (iPad)

3.6k Views Asked by At

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>
But, does this work on iPad and android tablet? I have tested on iOS 6 iPad simulator and mozilla. It did not work. So what is the alternative for this?

Thanks

1

There are 1 best solutions below

1
On BEST ANSWER

Use this:

      <input type="number" pattern="\d*"/>