Hi, I’m beginner in yii 2, but I have an active form to inter COUNTRY, REGION and DISTRICT through dropdownlist. But I failed to make district drop down to depend on selected region. Please can anyone help me on how to implement this ?
Hi, I’m beginner in yii 2, but I have an active form to inter COUNTRY, REGION and DISTRICT through dropdownlist. But I failed to make district drop down to depend on selected region. Please can anyone help me on how to implement this ?
I found this
https://www.yiiframework.com/wiki/723/creating-a-dependent-dropdown-from-scratch-in-yii2
Did you try to use ajax? You may find tutorials (for php) using google
I tried this, but the problem is the dropdown is not appearing, is just displaying the search icon, like it is searching
Hi @Rainald, welcome to the forum.
Please show us your code, or no one will be able to help you.
What do you have in your controller, model and view regarding the dependent dropdowns?