当前位置:网站首页>Form Validation
Form Validation
2022-06-21 09:14:00 【Tie Hanhan plus】
- Limit input Box to enter only pure integer numbers
<input type="text" class="input-number" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" name="password" ng-maxlength="10">
// onKeyUp="value=value.replace(/[\W]/g,'')" // Match English and numbers
- Limit input Box to enter only two decimal digits ( The highest 10 position )
<input type="number" oninput="value=value.replace(/\D*(\d*)(\.?)(\d{0,2})\d*/,'$1$2$3');if(value.length>11)value=value.slice(0,11)" pattern="[0-9]*\.?[0-9]{0,2}">
// pattern="[0-9]*\.?[0-9]{0,2}" -- compatible ios Low version
边栏推荐
- sql查看数据库/表磁盘占用情况,杀死进程终止tidb中的连接
- MOOC course of Nanjing University of Technology: Fundamentals of program design (Ⅰ) Chapter 8 answer and analysis of multiple choice test questions
- The R language plot function visualizes multiple lines in the same plot, and uses the BMP function to save the visualization image to the BMP format file in the specified directory
- [practice] stm32mp157 development tutorial FreeRTOS system 6: FreeRTOS list and list items
- An app developed based on retrotfit2.1+material design+ijkplayer
- 1. is god horse a meta universe?
- The R language uses the sink function to export the string to the txt file in the specified directory. If no directory is specified, it will be output to the current working dir
- STL教程3-类型转换static_cast、dynamic_cast、const_cast、reinterpret_cast方法
- How to use ADB shell to query process traffic
- Dumpling備份數據庫
猜你喜欢

PingCAP 入选 2022 Gartner 云数据库“客户之声”,获评“卓越表现者”最高分

Figure out how MySQL works

Stm32mp1 cortex M4 development part 8: LED lamp control experiment of expansion board

【实战】STM32 FreeRTOS移植系列教程4:FreeRTOS 软件定时器

Zhihu wanzan: what kind of programmers are still wanted by the company after the age of 35? Breaking the "middle age crisis" of programmers

STL tutorial 3- type conversion static_ cast、dynamic_ cast、const_ cast、reinterpret_ Cast method

【实战】STM32MP157开发教程之FreeRTOS系统篇3:FreeRTOS 计数型信号量

Pingcap was selected as the "voice of customers" of Gartner cloud database in 2022, and won the highest score of "outstanding performer"

【VS】【使用问题】【解决方案】VS2010打开一直停留在启动界面

\Processing method of ufeff
随机推荐
PingCAP 入选 2022 Gartner 云数据库“客户之声”,获评“卓越表现者”最高分
Prefix sum and difference
Unity Detailed explanation of meta file function
How to generate QR code
Abstractqueuedsynchronizer (AQS) source code detailed analysis - condition queue process analysis
doc常用语法,更新中……
一条命令开启监控之旅!
Request and response must know
The spring recruitment is also terrible. Ali asked at the beginning of the interview: how to design a high concurrency system? I just split
Retrofit Extended reading
Retrofit扩展阅读
Retrofit擴展閱讀
Ali has been working for 8 years. This learning note is left when he reaches P8. He has helped his friends get 10 offers
Stm32mp1 cortex M4 development part 8: LED lamp control experiment of expansion board
微信小程序
Nodejs post request JSON type and form type
Summary of Web automated testing
[Mgt] model Mgt for code interpretation
Waiting in webdriver
【VS】【使用问题】【解决方案】VS2010打开一直停留在启动界面