In my UI I have a dropdown which contains some values: A, B, C. There is also another dropdown in the page whose values depend on the selected value in the first combo.
If I select A in the first field I need to display A1, A2, .... An options in the second.
If I select B in the first field I need to display B1, B2, B3, ..... Bm options in the second and so on.
The first combo is from a <Field type="Choice" />
.
How can I manage this situation? Can I create another field for the second combo (A1, A2, .... An + B1, B2, B3, ..... Bm) and somehow filter them? Can I use lists instead and join them somehow?
Plus, I need to make this work in the client side (with javascript/jQuery) without performing extra requests to get the values.
What is the prefered way to handle this situation in SharePoint 2010?