Best practice for populating dropdown based on other dropdown selection in web2py?

谁说胖子不能爱 提交于 2019-11-26 23:19:15

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!