The control input box can only enter numbers and decimal points, but when you enter numbers on the ios and then enter English, it will clear out all the English and digits.

<input type="text" placeholder=""  maxlength="13" oninput="this.value=(this.value.replace(/[^0-9.]+/,""))"/>

when using the above code to input input, control input can only enter numbers and decimal point
, but first enter 12333, then switch to English keyboard input English Yes, clear English at the same time the previous 12333 will also be cleared, and must appear on ios

Mar.16,2021

how to solve this problem?

Menu