CodeIgniter Forums

Full Version: [Solved] Need help with Ajax to populate a form
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.

El Forum

[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.