我想在ajax函數成功後替換<div id="container"></div>
的內容,也沒有頁面刷新。ajax函數成功後替換div中的內容
$.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;