如何创建依赖于 yii2 中的另一个下拉列表的下拉列表? [英] How to create a dropdown dependent on another dropdown in yii2?
本文介绍了如何创建依赖于 yii2 中的另一个下拉列表的下拉列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个api:1:返回所有行业,2:返回所有行业类别(根据行业id).
I have two api's: 1: returns all the industries, 2: returns all the industry category(based on industry id).
我需要两个下拉菜单,一个依赖于另一个.选择行业时,第二个下拉列表应仅显示相关类别.
I need two dropdowns, one dependent on other. On selecting industry 2nd dropdown should show only relevant categories.
提前致谢.
推荐答案
您可以使用 this> 扩展名.您可以在其指南页面上找到插件的说明.
You can use this extension. You can find explanation of plugin on its guide page.
这篇关于如何创建依赖于 yii2 中的另一个下拉列表的下拉列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文