jQuery.ajax({ url: href_url, dataType: "text", // "html" success: function(html) { var $load_data = jQuery('.main .content', $(html)); // look for a specific element in the returned HTML load_data_title = jQuery($load_data).find('.content-header h1').text(); jQuery('.target').text(load_data_title); } });