在打开时更改下拉列表的内容? [英] Changing content of a dropdown list while it's open?

查看:16
本文介绍了在打开时更改下拉列表的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个填充了一些项目的下拉列表.当用户选择其中之一时,我希望下拉列表保持打开状态并重新填充新项目.用户然后选择其中之一,最后下拉菜单关闭.

I have a dropdown list populated with some items. When the user selects one of them, I would like the dropdown list to stay open and be repopulated with new items. The user then selects one of these and finally the dropdown closes.

可以用 JavaScript 完成吗?如果是这样,如何?

Can it be done in JavaScript? And if so, how?

推荐答案

并非没有用 自定义.

这篇关于在打开时更改下拉列表的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆