on safari of iOS , this line of attributes in the html input element will get number keyboard out; in this case, it will also force the max-length for the input length to be four character long.
<input type="text" value="" id="getNumberKeyboard" maxlength="4" pattern="[0-9]*">