CodeIgniter Forums
[Solved] Need help with Ajax to populate a form - 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: [Solved] Need help with Ajax to populate a form (/showthread.php?tid=11094)



[Solved] Need help with Ajax to populate a form - El Forum - 08-25-2008

[eluser]Delete Me Please[/eluser]
Greetings,

I've never really worked with Ajax before so I'm not sure it can be done. What I'm trying to is populate a form based on a dropdown box. The dropdown box values are client ids. So when you select a client I'd like it to query the database, grab the client details using the client id that was passed and then populate the form just below with the results. The form below has things like Name, Phone, Address, etc...

If someone could point me in the right direction or give me a small example I could expand on, that would be great. Preferably using either mootools or jquery Smile.


[Solved] Need help with Ajax to populate a form - El Forum - 08-25-2008

[eluser]Delete Me Please[/eluser]
Solved, I adapted the method from another example I found to work for me. If anyone is looking for a solution, drop me a PM or reply here.