<div id = "navmenu">
<ul>
<li><a href="2.php">1</a></li>
<li><a href="3.php">2</a></li>
<li><a href="4.php">3</a></li>
</ul>
</div><!--END div = "NavMenu"-->
<br>
<br>
<br>
<div id = "divbody">
</div>
$(function() {
var content = $('#divbody'),
storage = {};
$('#navmenu').on('click', 'a', function(e) {
var href = this.href;
if(href in storage) {
content.html(storage[href]);
}
else {
$.post(href, function(response) {
content.html(response);
storage[href] = response;
});
}
e.preventDefault();
});
});