Two-point interactive experience improvement tips for forms-forms effects

Source: Internet
Author: User
Presumably everyone has used the form on the page, if you are not satisfied with the monotonous form control unit, you may wish to look at the following tips:

1, form text input Mobile selection: In the text input column, if added to the prompts, visitors will often use the mouse to select the Delete, and then enter useful information. In fact, just add onmouseover= "This.focus ()" onfocus= "This.select ()" Code to <textarea>, everything will be much simpler, such as:
<textarea name=textarea wrap=virtual rows=2 cols=22 onmouseover= "This.focus ()" onfocus= "This.select ()" >Input 中文版.. </textarea>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

Similarly, you can add code to <input>.

2, Form input Unit Click Delete: This column is similar to the function, just use the mouse slightly changes, you need to click rather than as long as the mouse cover. Such as:
<input type=text name= "Address" size=19 value= "Enter,e-mail" "onfocus=" ">
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

Click the input unit, the prompt information will be deleted, is not very convenient.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.