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.