Input+select (multiple) Implementation of Drop-down box input value _javascript technique

Source: Internet
Author: User

And then try to use Input+select to achieve, the result is as follows:


Specific code and demo address:www.homdian.com/test.aspx

This method is actually in the Drop-down box to press a text box, can implement input, but also to achieve the choice of Drop-down box. However, depending on the input value, when you bind the Pull box option in an asynchronous manner,

Unable to expand the dropdown box, went to the internet to find a piece of code:

Copy Code code as follows:

Document.form1.ddlMovName.focus ();
var WshShell = new ActiveXObject ("Wscript.Shell");
try{
Wshshell.sendkeys ("%{down}");
}
catch (e) {}
Wshshell.quit;

The above paragraph can be implemented to expand the Drop-down box, but will pop up the following prompts (test environment IE7)

It doesn't feel friendly, so it doesn't work. And then try to use Input+select (multiple), the effect is as follows:

Specific code and demo address:www.homdian.com/test1.aspx

This method has basically met my needs, posted here, I hope you can provide a better way. Thank you.

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.