I am using this code to populate the html pages to a div.
$(document).ready(function(){
// Load Home Content
$('#content').load('pages/sample.html');
//Load Content Using Menu Links
$('.main-menu a').click(function(){
var page = $(this).attr('href');
$('.content').load('pages/' + page + '.html');
return false;
});
});
And i have anchors tags on loaded html. similar to my main page. a code example:
<div class="main">
<a href="sample">Go To Next Page</a>
</div>
Now i have multiple anchors on loaded div like above and i want to use same load procedure on it to change the code content div.
Any help would be appreciated.