离开< select>对象在选择后展开 [英] leave the <select> object expanded after selection
问题描述
我不确定这是否可行,但我希望在选择后离开使用JavaScript,JQuery扩展的HTML < select>
对象。任何想法?
编辑
我想要的是;如果用户从选择列表中选择更多选项,我会附加一些选项来选择元素并将其保留。如果用户选择除了更多选项以外的其他选项,我会折叠列表。我可以获得其他功能,但只有问题在于保持select元素打开。
这是不可能的。你必须实现一些看起来和像本地< select>
一样工作的东西,但它也有你想要的功能。
编辑—检查克林先生的答案;可能有办法做这项工作,排序。
I am not sure if it is possible but I would like to leave the HTML <select>
object expended using JavaScript, JQuery after the selection. Any ideas?
EDIT
What I want is that; if user selects more option from select list, I will append some more options to select element and leave it open. If user selects something other than more option, I will collapse the list. I can get a hold of other functionality but only problem here is to keep the select element open.
It's not possible directly. You'd have to implement something that looked and worked like a native <select>
but which also had the feature you want.
edit — check Mr. Kling's answer; there might be a way to make that work, sort-of.
这篇关于离开< select>对象在选择后展开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!