JS judgment can only be a number or a decimal point. The following describes how to use JS to determine the value of a text box. If you need it, you can refer to JS judgment, which can only be a number or a decimal point (extracted from other materials, this post is for personal use only)
1. Only numbers (excluding decimal points) can be entered in the text box)
2. Only numbers and decimal points can be entered.
3. Number and decimal point method 2
4. Only letters and Chinese characters can be entered
5. Only English letters and numbers are allowed. Chinese characters are not allowed.
6. Only numbers and English chun numbers can be entered.
7. After the decimal point, you can enter a maximum of two digits (numbers and Chinese characters). You cannot enter letters or operator numbers:
8. A maximum of two digits (numbers, letters, and Chinese characters) can be entered after the decimal point. You can enter the operator number:
It can only be a number, a decimal point, or a plus or minus sign.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.