Welcome Guest, Not a member yet? Register   Sign In
dynamic dropdown box

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

You can read up on jQuery here.


jQuery UI


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

google "jquery dependent select box"

Theme © iAndrew 2016 - Forum software by © MyBB