HTML , , ( , myArticles.html , ):
<div id='article1'>
<b>ARTICLE 1</b> This is my first article
</div>
<div id='article2'>
<b>ARTICLE 2</b> This is my second article
</div>
jQuery .load AJAX .
, 1 id = 'articleButton1' 2 id = 'articleButton2' ( href= '#', ), jQuery :
$('#articleButton1').click(function(){
$('#content').load('myArticles.html #article1');
}
$('#articleButton2').click(function(){
$('#content').load('myArticles.html #article2');
}
div #content div