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;
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…