<!DOCTYPE html>
<html>
<head>
<title>jQuery post() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$.post("get_method.php", {name: "Paul"}, function(data){
$('#msg').html(data);
});
});
});
</script>
</head>
<body>
<div id="msg">This text replace with new contains</div>
<br />
<button>Click here to call post() method</button>
</body>
</html>