Enforce numbers in mobile web form

Posted by Peter Smit on Stack Overflow See other posts from Stack Overflow or by Peter Smit
Published on 2010-02-11T18:34:59Z Indexed on 2010/04/01 0:13 UTC
Read the original article Hit count: 678

Filed under:
|
|
|

I have a simple webform targeted for Opera Mini and Opera Mobile. I'm using just a HTML input element.

Now I would like to restrict the element to only have integer numbers. Is there a way to enforce this in this browser (possible even that the phone will have it's number mode on when entering the form)?

And if I wanted to allow floats, is something possible then?

© Stack Overflow or respective owner

Related posts about html

Related posts about mobile-website