CodeIgniter Forums
How to show dropdown select box according to selection from the other one? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: How to show dropdown select box according to selection from the other one? (/showthread.php?tid=50409)



How to show dropdown select box according to selection from the other one? - El Forum - 03-25-2012

[eluser]term25[/eluser]
I have a select box where you can chose a country (USA, Canada, Mexico, Germany etc.) and the second one with cities.

I need to achieve that when you select a state e.g. USA from the first selectbox, then in the second selectbox shows cities like New York, Los Angeles etc.

How to achieve that in CodeIgniter?

Does CI have some function or something to do that?


How to show dropdown select box according to selection from the other one? - El Forum - 03-25-2012

[eluser]InsiteFX[/eluser]
You will probably need to use jQuery so that you do not need to do a page load.