- 25
- 0
- 约6.71千字
- 约 9页
- 2017-08-16 发布于河南
- 举报
input 限制输入类型(Input restrict input type)
input 限制输入类型(Input restrict input type)
Only 1. input and paste Chinese characters
input onkeyup= value=value.replace (/[^\u4E00-\u9FA5]/g ) onbeforepaste= (clipboardData.setDatatext, clipboardData.getData (text).Replace (/[^\u4E00-\u9FA5]/g)) br/
Only 3. digital input and paste
input onkeyup= this.value=this.value.replace (/\D/g ) onafterpaste= this.value=this.value.replace (/\D/g, /br/)
5. digital script
input onkeyup= if (/\D/.test (this.value)) {alert (this.value= can only enter numbers);}; br/
6. can only enter numbers and English
input onkeyup= value=value.replace (/[\W]/g ) onbeforepas
您可能关注的文档
- const用法(Const usage).doc
- cookie用法整理(Cookie usage arrangement).doc
- cool edit 使用指南(Cool Edit使用指南).doc
- copy of gsm系统消息的介绍 x(Copy of GSM system message introduction x).doc
- cool 英语(酷英语).doc
- copy详细用法大全(Copy detailed usage Daquan).doc
- could you please clean your room 说课稿(请你打扫你的房间说课稿).doc
- co(有限公司).doc
- cpu与gpu的作用和位置分析(Role and position analysis of CPU and GPU).doc
- cpa考试中,如何一次性通过6门档(CPA test, how to pass through 6 files at one time).doc
最近下载
- 土地整治、高标准农田、农田水利施工组织设计方案.docx
- 2026-2031年中国网络货运平台行业研究及十五五规划分析报告.docx VIP
- WWT 0044—2012田野考古植物遗存浮选采集及实验室操作规范.pdf VIP
- 监理单位质量管理体系及措施.pdf VIP
- 第三章-费用在各种产品以及期间费用之间的分配和归集.ppt
- DB13_T2560.3-2017_菊芋栽培技术规程第3部分:加工型菊芋_河北省.docx VIP
- 失语症的康复评估与治疗PPT课件.pptx VIP
- 《成本会计》 课件 王莉莉 第3--5章 费用在各种产品及期间费用之间的归集与分配、生产费用在完工产品与在产品之间的归集与分配、成本计算方法.pptx
- 数据中心800V直流供电技术白皮书2.0.pdf
- 林业无人机应用技术.pptx VIP
原创力文档

文档评论(0)