{"div1": "html for div1", "div2": "html for div2"}
$('#mydiv1id').html(ajaxresult.div1);
$('#mydiv2id').html(ajaxresult.div2);
$.ajax({ type: 'POST', dataType: 'json', url: '/echo/json/', // your route data : { json: JSON.stringify( jsonData ) }, success: function(data) { // loop through the results $.each(jsonData, function(i, item) { $('#divholder').append('<div>'+item+'</div>') }); } });