问题
I would like to create a form that contains dropdown fields. After entering text or selecting an option in one dropdown I would like to populate the options in another.
Is there a best practice for doing so specifically with web2py?
回答1:
Check out this lazy options widget (with usage example) as well as these recipes:
- Cascading Drop Down Lists
- Cascading Select Based on Python Lists
- Cascading Drop Down Lists with Ajax
来源:https://stackoverflow.com/questions/8146260/best-practice-for-populating-dropdown-based-on-other-dropdown-selection-in-web2p