Limit
Code Sample <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>input</title> </head> <body> An input box that can only input pure numbers: <input type="text" name="" oninput="value=value.replace(/[^\d]/g,'')"> </body> </html> This is the end of this article about how to limit the input box in HTML to only input pure numbers. For more relevant HTML content about limiting input to numbers, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! |
>>: An example of implementing a simple finger click animation with CSS3 Animation
Problem Description After installing Qt5.15.0, an...
1. setTimeOut Print abc after 3 seconds. Execute ...
Record the BUG that got me stuck all afternoon to...
Tomcat is a web server software based on Java lan...
1. The catalina.bat must be set to UTF-8. If I do...
1.What is margin? Margin is used to control the sp...
Due to encoding reasons, garbled characters will ...
1. Data Deduplication In daily work, there may be...
MySQL slow log is a type of information that MySQ...
Disable right-click menu <body oncontextmenu=s...
CentOS6.9 installs Mysql5.7 for your reference, t...
Follow the official tutorial, download the instal...
Installation Steps 1. Install Redis Download the ...
Tab switching is also a common technology in proj...
mysql 8.0.22 winx64 installation and configuratio...