How can you programmatically tell an HTML select to drop down (for example, due to mouseover)?

推荐答案

You can't do this with a HTML select tag, but you can do it with JavaScript and HTML. There are variety of existing controls that do this - for instance, the "suggest" list attached to the SO "interesting/ignored tag" entry, or Gmail's lookup for email adresses.

There are many JavaScript+HTML controls that provide this capability--look for autocomplete controls for ideas.

See this link for the Autocomplete control...http://ajaxcontroltoolkit.codeplex.com/

Html相关问答推荐

如何在元素的三条边中间换行边框?

对称渐变作为背景

Django中的图像未从静态显示

HTMLTag属性内的svelte+TS类型声明

为什么我得不到有错误的字段?迈克尔·哈特尔教程.7.3.3

我在桌面版 html css 代码上给出了位置 margin-left margin-top 标签,如何将其删除到手机上以使其响应?

如何用js和CSS在两点之间画一条线

将组件移动到页面底部 Angular

Flex布局中,当父元素高度较高时,交叉轴上出现额外的空白问题.

在 CSS 中的 div 中获取文本以环绕其他文本?

使用 calc 函数设置字体大小时 Flexbox 项目重叠

XPATH Select h2标签和

标签之间或h2标签和 标签之间的td元素,以立即为准

pandas `to_html()` - 如何只使特定的行有边框

如何在 svelte 中对静态 html 文件使用href=

在 SQL 中合并 HTML 表中的单元格

为什么 `html` 上的 overflow: hidden 将滚动框移动到正文?

标题之间和之后的 Hr 线

用 flexbox 和 overflow 覆盖

如何添加可水平滚动的单行图像列表(在react js中)

如果未提供目标地址且存在 innerText,则删除所有空锚标记