Skip to content Skip to sidebar Skip to footer

Setselectionrange Workaround Doesn't Work For Android 4.0.3

I am trying to mask the phone number as the user types. I have used the javascript code below with jquery and the setTimeout workaround successfully on android 2.x devices, but

Solution 1:

I just met the same problem. My solution is as follows,

.input {
  -webkit-user-modify: read-write;
}

It works in android 4.0.3 in my HTC.

Post a Comment for "Setselectionrange Workaround Doesn't Work For Android 4.0.3"