Home > Web Front-end > JS Tutorial > input advanced restricted level usage_basic knowledge

input advanced restricted level usage_basic knowledge

WBOY
Release: 2016-05-16 18:54:53
Original
2030 people have browsed it

1. Cancel the dotted box when the button is pressed
Add the attribute value hideFocus or HideFocus=true to the input
2. Read-only text box content
Add the attribute value readonly to the input
3. Prevent Back to the cleared TEXT document (the style content can be used as a class reference)
 
4. The ENTER key can move the cursor to the next input box

5. Can only be Chinese (with flashing)
 
6. Can only be numbers (with flashing)
 
7. Can only be numbers (without flashing)
 
8. Only English and numbers can be entered (with flashing)
 
9. Shield input method
 
10. Only numbers, decimal points, and minus (-) characters can be entered (no flashing)
 
11. Only two digits can be entered Decimal, three decimal places (with flashing)
 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template