This jquery plugin converts passed JSON option tree into dynamically created elements allowing you to choose one nested option from the tree.
It should be attached to a (most likely hidden) 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.