简体   繁体   English

当我跳入选择框时,如何在选择框中显示选项?

[英]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.

相关问题 如何知道选择框中的可用选项何时更改 - How can I know when the available options in a select box changes 更改父选择框后,如何删除Jquery中的旧选项? - How do I remove old options in Jquery when parent select box is changed? 切换 HTML 选择框值时如何隐藏/显示 HTML 输入框? - How do I hide/show HTML input boxes when I toggle HTML Select box values? 如何在单击按钮时显示选择框选项? - How to show Select box Options on Button Click? 当我得到带有 $this 的 select 框时,如何计算选项标签的数量 - how can I calculate number of options tag when I get the select box with $this 如何在我的 select 框中获得单独的选项而不是整个字符串 - How do I get separate options in my select box instead of a whole string 如何使用 JSON 数据填充选择框的选项? - How can I use JSON data to populate the options of a select box? 如何在 safari 中以编程方式隐藏打开的选择框中的选项? - How can I hide the options in an open select box programmatically in safari? jQuery在选项选择字段上显示/隐藏,显示我要在所有其他选项上显示的框 - jQuery show/hide on option select field showing the box I am trying to show on all other options 当我使用jQuery单击选择按钮时,如何选择所有复选框 - How do I select all check box when I click on Select button using jQuery
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM