Input + select (multiple) Implement the input values in the drop-down box

Source: Internet
Author: User

So I tried to implement it using input + select. The result is as follows:

 

Code and demo URL: www.homdian.com/test.aspx

This method is to press a text box in the drop-down box to achieve input and selection of the drop-down box. However, when the drop-down box option is bound asynchronously based on the input value,

The drop-down box cannot be expanded. I found a code segment on the Internet:
Copy codeThe Code is as follows:
Document. form1.ddlMovName. focus ();
Var WshShell = new ActiveXObject ("Wscript. Shell ");
Try {
WshShell. SendKeys ("% {DOWN }");
}
Catch (e ){}
WshShell. Quit;

The preceding sections show the drop-down list, but the following prompt is displayed (test environment IE7)

It is useless because it is unfriendly. So I tried to use input + select (multiple). The effect is as follows:

Code and demo URL: www.homdian.com/test1.aspx

This method has basically met my needs, and I hope you can provide better methods. Thank you.

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.