Numeric Keypad for textbox using set attribute widget giving issue in android

0
Hi All,   I have a text box for which i am using set attribute widget as following as i need only digits to be entered. This is working fine for iOS devices but in android device it is also accepting '.' and '-' along with the digits. So how can i make it work for android also?   Also, when i type '.' or '-' from keypad the value is taken as empty. Can  anybody think about the reason behind this?   Thanks,
asked
1 answers
1

Could you try adding: min and step as well? So you'll get:

    <input type="number" min="0" step="1"/>

See: https://stackoverflow.com/questions/8808590/html5-number-input-type-that-takes-only-integers

 

answered