Home  >  Article  >  Web Front-end  >  11 examples of advanced usage of web form element Input_HTML/Xhtml_Web page production

11 examples of advanced usage of web form element Input_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:43:051342browse

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 in the input
3. Prevent the TEXT document from being cleared after going back (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 in Chinese (with flashing)

6. Can only be numbers (with flashing)

7. Can only be numbers (no flashing)

8. only Can input English and numbers (with flashing)

9. Shield input method

10. Only numbers and decimal points can be entered. Minus sign (-) character (no flashing)

11. Only two decimal places and three decimal places can be entered (with flashing)

Statement:
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