在html中多级选择 [英] Multiple level select in 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屋!