I use the jquery .load function to load a divs(left) from a other page inside a div(page_content) on the current page but when i use the load function to load a other div(right) in page_content it overwrites everyting inside the div(page_content).
And i just want it to be added to the div.
here is my code:
function load(){
$('#page_content').load('test.php .left');}
function load2(){
$('#page_content').load('test2.php .right');
}
You can use the
callback function to convert two call to single call and get the .left and right content in the call to assign to your element with id page_content,