Jquery masked Input v1.4 with Samsung Android Device

I ran into a problem with the jquery-masked-input v1.4 plugin.

I have an input field:

<input type="text" id="phone" placeholder="(999) 999-9999" /> 

and applied a mask to it:

 <script> $("#phone").mask("(999) 999-9999"); </script> 

It works great on all devices, ranging from desktop computers, mobile phones (all iphones, androids), with the exception of Samsung Android devices.

What does he do on these devices, when I try to enter numbers, he will enter only one number and the text keyboard will immediately open. Then, when I try to enter the numbers again, it will not display correctly. For example.

I want to enter: (989) 942-0827 What I get: (898) ___-__ 9

and the text keyboard continues to open when I try to enter numbers.

Please suggest any workaround. Thanks in advance.

+7
jquery android html input jquery-mask
source share
1 answer

It is very old, but I thought I would send it anyway ...

Im not 100% sure that I understand your problem, but try changing the type to number. This should constantly force the number pad and not show a text keyboard

 <input type="number" id="phone" placeholder="(999) 999-9999" /> 
0
source share

All Articles