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

[eluser]snowstar[/eluser]
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
#2

[eluser]InsiteFX[/eluser]
You can read up on jQuery here.

jQuery

jQuery UI

InsiteFX
#3

[eluser]umefarooq[/eluser]
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

http://net.tutsplus.com/articles/web-rou...eo-series/

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

http://api.jquery.com/change/

jquery post doc

http://api.jquery.com/jQuery.post/

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

[eluser]CroNiX[/eluser]
google "jquery dependent select box"




Theme © iAndrew 2016 - Forum software by © MyBB