离开< select>对象在选择后展开

编程入门 行业动态 更新时间:2024-10-27 05:34:05
本文介绍了离开< select>对象在选择后展开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我不确定这是否可行,但我希望在选择后离开使用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.

更多推荐

离开&lt; select&gt;对象在选择后展开

本文发布于:2023-10-31 01:57:19,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:对象   lt   amp   gt   select

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!