I\'m using jQuery\'s ajax code to load new pages, but wanted him to get only the html of a div.
My codes: HTML:
Ok, You should "construct" the html and find the .content div.
like this:
$.ajax({ url:href, type:'GET', success: function(data){ $('#content').html($(data).find('#content').html()); } });
Simple!