Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vipin93's avatar

Ajax loading problem L4.2

I try to make dependent dropdown list. Imade it in very long way using my route controller and javascript my problem is when i choose a country in state option showing all state related to that country but we have to manually again select state for next option(district) my view http://laravel.io/bin/bE7Nx and my javascript http://laravel.io/bin/XyOYy and my controller http://laravel.io/bin/Nk3YV and my route http://laravel.io/bin/E3LYm any can help me?

0 likes
2 replies
bobbybouwmann's avatar

I don't understand you question, countries work right? Why wouldn't the other parts then?

vipin93's avatar

@blackbird actually i want to display default 'select country an select state so on..' when not selected any one option

Please or to participate in this conversation.