Recommended 11 examples of advanced usage of form input_Experience exchange

WBOY
Release: 2016-05-16 12:06:55
Original
2470 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 TEXT documents that are 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. Only For Chinese (with flashing)


6. Can only be numbers (with flashing)


7. Can only be numbers (no 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. You can only enter two decimal places and three decimal places (with flashing)

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