I would like to replace a content of <div id="container"></div> after the ajax function is successful, also without page refresh.
$.ajax({
type: "POST",
url: "scripts/process.php",
data: dataString,
success: function() {
//Whats the code here to replace content in #conatiner div to:
//<p> Your article was successfully added!</p>
}
});
return false;
http://api.jquery.com/html/
also using http://api.jquery.com/load/,