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;