The js control text box can only contain Chinese characters, English letters, numbers, and specified special characters. The JS control text box can only contain numbers.
Javascript control text box can only enter numbers, decimal points
Javascript control text box can only be entered in English
Only English and numbers can be entered in the JS control text box.
The JS control text box can only enter Chinese Characters
The JS control text box can only contain Chinese characters, English letters, and numbers.
The JS control text box can only contain Chinese characters, English letters, numbers, and spaces.
The javascript control text box can only contain Chinese characters, English letters, numbers, and decimal places.
All in all:
First in''
Onkeyup = "value = value. replace (/[^ \ X]/g ,'')"
Then replace X in (/[\ X]/g, '') with the code you want to enter,
Chinese u4E00-u9FA5, number 0-9, English a-z \ A-Z, other symbols @, point or other symbols.
You can also use \ To separate multiple.
For example: Chinese and English + numbers + @ symbol + dot symbol \ a-\ z \ A-\ Z0-9 \ u4E00-\ u9FA5 \@\.
If you do not want to right-click the menu in the text box or paste the copied information
In''Enter onpaste = "return false" oncontextmenu = "return false ;"