2

I tried my HTML5 App on a Blackberry 10 phone (Q10), and I m using an input field for which the code is:

<input type="number" placeholder="myID" id="myId"/>

When testing, I can type my numric value , but once I tap on another field, or tap a button, the first input field become empty.

Strangely, when I change the tag "number" with "numeric", it works! After verifying the HTML5 reference, I can see that no such "numeric" tag exists!

Does "number" works fine on Blackberry ? is there anything wrong with my code?

WiPhone
  • 683
  • 6
  • 24

2 Answers2

0

I just tested it here on OS 10.1.0.4181 and it is working fine for me using your code. Do you happen to have anything onBlur listeners, maybe something else is going on there..=

chadtatro
  • 789
  • 3
  • 5
  • I am using BB 10.1.0.2342 and I use JqueryMobile in my App. I don't have any onBlur listener in my code – WiPhone Oct 22 '13 at 06:49
0

The reason why it worked well with type="numeric" is because your issue doesn't occur on type="text".

If the type of an input isn't specified or if the type is unknown then the browser will handle it as type="text".

DerZyklop
  • 3,672
  • 2
  • 19
  • 27