Home > Web Front-end > JS Tutorial > body text

Two tips for improving the interactive experience of forms_Form special effects

WBOY
Release: 2016-05-16 19:19:02
Original
1111 people have browsed it

I believe everyone has used forms on the page. If you are not satisfied with the monotonous form control unit, you might as well take a look at the following tips:

1. Mobile selection of form text input: In the text input field, if A prompt has been added. Visitors often have to use the mouse to select and delete, and then enter useful information. In fact, as long as you add onMouseOver="this.focus()" onFocus="this.select()" code to
[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh it to execute ]


Similarly, you can add code to .

2. Click to delete the form input unit: This column has the same function as the above, but there is a slight change in using the mouse. You need to click instead of just covering it with the mouse. Such as:

[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh to execute it ]

After clicking the input unit, a prompt The information will be deleted, isn't it very convenient?
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template