<!DOCTYPE html>
<html>
<head>
<title>jQuery ajaxComplete() event method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function() {
$("button").click(function(event){
$("#msg").load('ajaxfile.txt');
});
$(document).ajaxComplete(function(){
$("#complate").text("Request Complete.");
});
});
</script>
</head>
<body>
<p id="complate">Response</p>
<button>Click here to call ajaxComplete() method</button>
<br /><br />
<div id="msg" style="background-color:pink;">First paragraph start here</div>
</body>
</html>