选择描述后更改选择列表显示值
我想要一个执行以下操作的选择列表:
- 当选择列表打开时,显示描述列表。
- 当用户选择一个项目时,选择列表将关闭,仅显示值。
这样做的原因是为了节省空间,因为值会短得多。我希望 jQuery 能给出答案。
谢谢。
I would like a select list that does the following:
- When the select list is open, display the list of descriptions.
- When the user selects an item, the select list will close an only the value will be displayed.
The reason for this is to conserve space as the values will be much shorter. I'm hoping that there's an answer in jQuery.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我已经解决了:
它可能可以优化一点。
Alright, I've worked it out:
It could probably be optimized a bit.