How do I prevent Just loading… in dependent dropdown? Problem: Just see Loading… in dependent dropdown. No data appears in the dependent dropdown. Solution: Not obvious initially. Make sure use yii/helpers/json in sitecontroller. https://stackoverflow.com/questions/23951520/dependent-dropdown-yii2-how-to-do
Make sure you use yii/helpers/json in sitecontroller.
Make sure you have a field named ‘name’ in each of the databases that you use for each of the databases or models that are linked to the dropdown.