首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > jQuery插件来动态创建分层选择元素的选择

jQuery插件来动态创建分层选择元素的选择

资 源 简 介

This jquery plugin converts passed JSON option tree into dynamically created element. It requires an option tree object. Object property names become labels of created select elements, each non-leaf node in the tree contains other nodes. Leaf nodes contain one value - it will be inserted into attached element when chosen. The plugin also supports loading additional levels via AJAX calls and preselecting given items at load. Usage ``` var option_tree = { "Option 1": {"Suboption":200}, "Option 2": {"Suboption 2": {"Subsub 1":201, "Subsub 2":202}, "Suboption 3": {"Subsub 3":203, "Subsub 4":204, "Subsub 5":205} } }; $("input[type=hidden].nested")

文 件 列 表

jquery-option-tree
demo
jquery.optionTree.js
VIP VIP
0.189754s