Awesome that works.
Perhaps you can help with this now :-) My ajax is returning a div with an id but I do not know what it is as it is generated by our DB. I do know it's class and I do know that it is the first div with that class because I prepend it to the existing data. I need to find this new DIV id so I can make it sortable (interface.js) Here's my code, but it doesn't work. $('#level1").prepend(data).SortableAddItem($('div.groupItem:eq(0)')); this is returning an object but not the ID. I have tried the following as well but it produced errors: $('#level' + var3).prepend(data).SortableAddItem($('div.groupItem:eq(0)').id); and $('#level' + var3).prepend(data).SortableAddItem($('div.groupItem.id:eq(0)')); Much appreciated. malsup wrote: > > > If you're not using any other options on the ajaxSubmit call then you > can just pass it a function to handle to the response text: > > $('#myForm').ajaxSubmit(function(text) { > $('#myTarget').append(text); > }); > > Otherwise you would use the "success" handler to do it. For example: > > var opts = { > success: function(data) { > $('#myTarget').append(data); > } > }; > > $('#myForm').ajaxSubmit(opts); > > Mike > > >> I understand that it is possible to set a target which receives any >> updates >> from an ajax post. >> My question is, is it possible to have the data that is returned be >> appended >> to existing data in the target div? If so how is this accomplished. > > -- View this message in context: http://www.nabble.com/ajaxSubmit-target-append-possible-tf3705792s15494.html#a10389029 Sent from the JQuery mailing list archive at Nabble.com.