CodeIgniter Forums
how to generate a multiple drop down list box in a single form ????? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: how to generate a multiple drop down list box in a single form ????? (/showthread.php?tid=20274)



how to generate a multiple drop down list box in a single form ????? - El Forum - 07-03-2009

[eluser]mythilisubramanyam[/eluser]
i have three drop down list in the form,
in the first drop down list i have loaded all the country names,
in the second drop down, for the corresponding selected country name, states with the selected country id, has to be loaded, and similarly the cities,

here i'm confused, how to load the 2nd list, dynamically without page reload,
and as well as 3rd list,


how to generate a multiple drop down list box in a single form ????? - El Forum - 07-03-2009

[eluser]kgill[/eluser]
This has been answered in one of your previous posts, you have to use ajax if you want to avoid having to submit after each selection. If you want to do this, you're going to have to read up on javascript because without an understanding of js syntax a lot of the code out on the web is going to confuse you.