I would like to replace a content of after the ajax function is successful, also without page refresh.
http://api.jquery.com/html/
$.ajax({
type: "POST",
url: "scripts/process.php",
data: dataString,
success: function( returnedData ) {
$( '#container' ).html( returnedData );
}
});
also using http://api.jquery.com/load/,
$( '#container' ).load( 'scripts/process.php', { your: 'dataHereAsAnObjectWillMakeItUsePost' } );