Input content input restrictions

you can only enter numbers: < input type= "text" onkeyup= "if (! / ^ d+$/.test (this.value)) {this.value=this.value.replace (/ < sup id=" fnref-1 "> 1 < / sup > + / g class=");}" / >
like this, you can only enter numbers and keep one place after the integer decimal point, Boss Xie

< hr >
    < li id= "fn-1" > d please
Mar.03,2021

var reg = / ([0] | [1-9] *). [0-9] /;
if (! reg.test (this.value)) {

return false;

}
[this.value] = reg.exec (this.value);

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b355ec-2bf7f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b355ec-2bf7f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?