The regular method in which this input can only enter positive integers doesn't seem to work.

<input type="text" onkeyup="this.value=this.value.replace(/\D/g,"")" onpaste="return false;"></input>

sometimes it works, sometimes it doesn"t work

Mar.17,2021

<input type="text" oninput="this.value=this.value.replace(/\D/g,'')" onpaste="return false;"></input>

<input type="text" oninput="javascript:this.value=this.value.replace(/[^\d]/g,'')" onpaste="return false;"/>

you can match multiple positive integers

by using the regular tool MTracer ^ codeshelper id=0 $. Therefore, you can replace the regular expression with
oninput= "this.value=this.value.replace

Menu