# Load model with Ajax and jQuery to load a form

**URL:** <https://www.ruby-forum.com/t/load-model-with-ajax-and-jquery-to-load-a-form/172334>\
**Category:** Rails\
**Created:** [July 19, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/load-model-with-ajax-and-jquery-to-load-a-form/172334 "2009-07-19T22:00:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![olivierntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85e7bf/32.png) [@olivierntk](https://www.ruby-forum.com/u/olivierntk)\
**Post date:** [July 19, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/load-model-with-ajax-and-jquery-to-load-a-form/172334/1 "2009-07-19T22:00:01Z")

</div>

Hi all, I am having troubles to figure out how I can load data via  
ajax and inject those data in a form.

Basically, I have a table of users. Each user has an edit button. On  
click, I want to load this user’s data and pop out an modal box  
containing a form filled with the users data so I can edit them.

Creating such a thing to create a new user was fine but I don’t see  
how I can populate the edit form.

Thanks!
