N
N
newaitix2018-07-23 09:59:04
Android
newaitix, 2018-07-23 09:59:04

Digital form?

<input type="text">
This input will contain numbers, underscores, dashes, and parentheses
. Only numbers can be entered in this input. How to set it so that the numeric keypad opens on android?
type="number" // doesn't fit because nothing but numbers can be
stuffed into it type="tel" // doesn't fit because a javascript handler is attached to it.
How to get out of this situation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Sokolov, 2018-07-23
@sergiks

Maybe make the input invisible, and display the entered number with completed brackets in a visible field?

S
sdgroup14, 2018-07-23
@sdgroup14

your output is https://cdnjs.com/libraries/jquery.mask . Try it with type="number" if you need a numeric keypad.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question