HTML / Javascript:嵌套集的多项选择小部件
在我当前的项目中,我有一组嵌套的区域,组成如下:
World
Europe
Germany
Italy
Spain
...
America
...
...
我正在寻找一个基于 Javascript 的 HTML 选择小部件,它为嵌套组提供了多种选择。例如,如果用户选择“欧洲”,则必须选择所有子区域。否则,可能会出现冗余选择。选择软件包时,您可以在某些安装程序中看到这种小部件。
我还没有发现任何有用的东西
In my current project, I have a nested set of regions composed as follows:
World
Europe
Germany
Italy
Spain
...
America
...
...
I'm looking for a Javascript based choice-widget for HTML which provides multiple selections for nested sets. If the user for instance selects "Europe", all sub-regions have to be selected. Otherwise, redundant selections would be possible. You can see this kind of widget in some installers when selecting packages.
I didn't find anything useful yet
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
几个月前我也在寻找同样的答案。经过几个小时的搜索,我根据
onchange
事件和each
循环(jQuery)编写了自己的代码。Few months ago I looked for the same answer. After hours of searching I wrote my own code based on
onchange
events andeach
loops (jQuery).看看这个:
http://code assembly.com/Simple-chained-combobox-plugin-for- jQuery/
Take a look at this:
http://codeassembly.com/Simple-chained-combobox-plugin-for-jQuery/