how to load a html into another html page using ajax when a link is clicked code example
Example 1: ajax load spesific element from another page
$.ajax({
url:href,
type:'GET',
success: function(data){
$('#container').html($(data).find('#content').html());
}
});
Example 2: ajax load spesific element from another page
$('#container').load('ajax/test.html #content');