在html中多级选择 [英] Multiple level select in html

查看:141
本文介绍了在html中多级选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个选择框,它在选项更改时运行JavaScript。现在我想要有多级选择,例如菜单和子菜单等。



我想要的就像我有选择国家的选项。一旦鼠标在国内被击中,该国的城市就会被横向带入,并在点击城市时成为第三个列表。



我在本论坛中看到过在那里提到并解决了国家城市街道类型选择,但我想要的是选择的价值应该是选择的最后一件事(从儿童下拉列表中选择),而不是像country-> city-> region



同时保持onchange事件不变。

解决方案

有Giva的jQuery插件实验室称为mcDropdown jQuery Plug-in v1.3.1,它有类似的用途。



http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm b
$ b

另一种选择是: http://www.filamentgroup.com/lab/jquery_ipod_style_and_flyout_menus/



看看它。


I have a select box which runs a JavaScript when the option changes. Now I want to have multi level select, something like menus and submenus etc.

What I want is like I have Option to select Country. As soon as mouse is cliked on country, the cities of that country are brought into the form sideways and maybe third list when city is clicked.

I have seen in this forum where Country-City-Street type select is mentioned and solved but what I want is that the value of the select should be from the last thing (from child dropdown) selected and not something like country->city->region

Also to keep that onchange thing intact.

解决方案

There is jQuery plugin from Giva Labs called mcDropdown jQuery Plug-in v1.3.1, which serves similar purpose.

http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm

and another choice is: http://www.filamentgroup.com/lab/jquery_ipod_style_and_flyout_menus/

Take a look at it.

这篇关于在html中多级选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆