0

My code look like this

<div id="example4" class="autotabbed">
<input type="text" onkeypress='return event.charCode >= 48 && event.charCode <= 57' maxlength="1" class="adr_dgt autotabbed" size="1" placeholder="x" />
</div>

when I open this in tablet how to get numeric keypad

RonyLoud
  • 2,408
  • 2
  • 20
  • 25

2 Answers2

1

Try with

input type="number" 

That should work

Alvaro
  • 491
  • 3
  • 16
0
<div id="example4" class="autotabbed">
  <input type="number" onkeypress='return event.charCode >= 48 && event.charCode <= 57' maxlength="1" class="adr_dgt autotabbed" size="1" placeholder="x" />
</div>

On focus this will open the numeric keypad on tablets and phones.

Saiyam Gambhir
  • 536
  • 3
  • 16