4

The following CSS worked fine in my Windows mobile phone, but my Pre won't default to numeric inputs.

input.numeric {
 -wap-input-format:"*n";
}

How do I get the Pre (and presumably other newer mobile browsers?) to default to numeric inputs?

Chris Marasti-Georg
  • 34,091
  • 15
  • 92
  • 137

1 Answers1

2

Just a guess, but the new number value for the type attribute introduced in HTML5 does work on the Mobile Safari:

<input type="number" min="0" max="10" step="2" value="6" />

Reference: http://diveintohtml5.ep.io/forms.html#type-number

DanBeale
  • 310
  • 4
  • 15
Yi Jiang
  • 49,435
  • 16
  • 136
  • 136