<!DOCTYPE html>
<html>
<head>
<title>jQuery load() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("div").load('ajaxfile.txt');
});
});
</script>
</head>
<body>
<div>
<p>It will hide after loads server file.</p>
</div>
<button>Load file</button>
</body>
</html>