Mike,

>I'm using the Form plugin to submit data to a processing page and upon
>success, show a notification to the user.  My form has 6 fields, one
>text and 5 textarea. When the form is initially filled out and
>submitted the user sees a div get updated for confirmation. Now if the
>user changes any of the fields and submits, they get the confirmation
>but the changed fields revert back to the data they were showing
>before the update.  I'd like to repopulate the fields with the updated
>data if possible.
>
>My code:
>
>       $(document).ready(function() {
>               var options = {
>                       target: '#resultDiv',
>                       resetForm: true
>               };
>
>               $('#frmTop5').ajaxForm(options);
>       });

Check out the Field Plug-in for more methods of interacting with form
fields:

http://jquery.com/plugins/project/field

The Field Plug-in includes a method called formHash() which will allow you
to populate a form based upon a hash/structure. 

-Dan

Reply via email to