CodeIgniter Forums
dynamic dropdown box - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: dynamic dropdown box (/thread-35128.html)

dynamic dropdown box - El Forum - 10-19-2010

Hi all,

i've been using ci for awhile now. This is first time i havent found what i've been looking for via google or the forums so i decided to make a post.

I'm currently working on a dynamic invoice but i'm stuck in one area.

I'm trying to make a drop down box (which select values contain populated info in db) on select of one option will auto complete two other input fields with information associated with that value i.e user selects product name and product's description and price are fulled out in the other two input fields.

Apart from the above, i've got the rest working.

Could some one point me in the right direction? i think this could be achieved with Ajax how-ever i havent touched ajax before.

Much appreciated

dynamic dropdown box - El Forum - 10-19-2010

You can read up on jQuery here.


jQuery UI


dynamic dropdown box - El Forum - 10-19-2010

yes ajax is the key, will help you to solve you problem its really easy use just use jquery to do this all if you dont know about jquery also just have look on these tutorials will help you

if you want to do really quick check jquery change event from jquery doc

jquery post doc

just put post in jquery change function will work for you if you find any problem just post here

dynamic dropdown box - El Forum - 10-20-2010

google "jquery dependent select box"