Is it possible to open up the mobile numeric keyboard in a textarea box?
<textarea id="searchBox" pattern="[0-9]*" ng-model="searchParams.searchString" rows="3" ng-blur="formatSearch()"></textarea>
Unfortunately this is not yet possible for
textarea. I have searched exhaustively on this and tried many varietions of pattern and types and so on but it just is not supported for
There are two possible solutions, either you can create your own html5 custom soft keyboard and apply a trick not to open the default keyboard.
Or (more elegant I think) use a normal input with type
number or type
tel and attach an onkeyup listerer. When enter is pressed, you process the line into your textarea and clean plus refocus the input.