simple and dirty: append an empty element to the div#dataDiv, and have the loaded data inserted into it:
$('<div></div>').appendTo('#dataDiv').load('process_data.php?id=2'); or in fact you could simply use the $.get $.get('process_data.php?id=2',function(data){ $(data).appendTo('#dataDiv'); }); On Feb 12, 2008 10:23 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > > I would like to load content from "process_data.php?id=2" and then > append that data into the DIV with id="dataDiv", how would I do this? > I have seen the ".load" directive, but seems to erase any data > previously in the DOM element whereas I want to append on to what is > already there. > > Thanks for any help, - Dave > -- Alexandre Plennevaux LAb[au] http://www.lab-au.com