[英]how do i show the options in a select box when i tab into the box?
I am building an application and have a page with a bunch of select boxes where the user must set different options... 我正在构建一个应用程序,并在页面上有一堆选择框,用户必须在其中设置不同的选项...
How do i show all the options that are available when the user tabs into the box? 当用户将标签页拖入框中时,如何显示所有可用选项? Currently i can tab into the box and start typing and it will search through the options, but it does not show the available ones.
目前,我可以在框中输入标签并开始输入内容,它将搜索选项,但不会显示可用的选项。
Is there a javascript solution for this? 是否有针对此的javascript解决方案? I am using firefox.
我正在使用Firefox。
Any help would be appreciated. 任何帮助,将不胜感激。
This may help you out - http://www.webreference.com/programming/javascript/gr/column5/ - Refer to the 'AutoComplete.prototype.onchange = function()' It seems to me if you called this (Customized to your uses of course) on the gotfocus event it should do what you want it to. 这可能对您有帮助-http: //www.webreference.com/programming/javascript/gr/column5/-请参阅“ AutoComplete.prototype.onchange = function()”。在我看来,如果您将此称为“您当然会使用它)在gotfocus事件上,它应该做您想要的事情。 Hope this helps.
希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.