我不确定这是否可行,但我希望在选择后离开使用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>对象在选择后展开
发布评论