03-15-2010 09:08 AM
let me know when you figure that one out. I don't think there is an "out of the box" solution.
The link Tim posted above... if that code was modified to check for the decimal, it should work.
03-16-2010 09:37 AM
Unfortunately, jmace was correct, it is difficult (not to say impossible) to handle decimals.
Miamon, i tried your suggestion but it does not work.
Other tests I made were with: "*N\.2N" and with two backslashes (\\) as escape character but nothing seems to work.
03-16-2010 04:11 PM
Have you considered using the "inputmode" property? This property autochanges the keyboard input mode to the selected type when the user adds focus to given input field.
Here's an example of how you can specify that the numeric keyboard be used when the user enters values in a text input field:
<input type="text" id="txtInput" value="" inputmode="digits" />
Note: this property won't restrict non-numeric values from being entered. However it can be used to help make it more convenient for your end users to enter certain types of data.
03-16-2010 05:29 PM