1. Only numbers and English letters can be entered:
<Input onkeyup = "value = value. Replace (/[\ W]/g ,'')"
Onbeforepaste = "clipboardData. setdata ('text', clipboardData. getdata ('text'). Replace (/[^ \ D]/g ,''))"
Id = "text1" name = "text1">
2. Only numbers can be entered:
<Input onkeyup = "value = value. Replace (/[^ \ D]/g ,'')"
Onbeforepaste = "clipboardData. setdata ('text', clipboardData. getdata ('text'). Replace (/[^ \ D]/g ,''))"
Id = "text2" name = "text2">
3. Only the fullwidth fields can be entered:
<Input onkeyup = "value = value. Replace (/[^ \ uff00-\ Uffff]/g ,'')"
Onbeforepaste = "clipboardData. setdata ('text', clipboardData. getdata ('text'). Replace (/[^ \ uff00-\ Uffff]/g ,''))"
Id = "text3" name = "text3">
4. Only Chinese characters can be entered:
<Input onkeyup = "value = value. Replace (/[^ \ u4e00-\ u9fa5]/g ,'')"
Onbeforepaste = "clipboardData. setdata ('text', clipboardData. getdata ('text'). Replace (/[^ \ u4e00-\ u9fa5]/g ,''))"
Id = "text4" name = "text4">