I use Ajax to get info from within another page, but not display this page. Here is the code
$.ajax({
url: 'another-page.html',
dataType: 'html',
success: function (data) {
//how to get the html title contained in data?
//how to get an element with ID contained in data?
}
});
I feel this should have been answered somewhere, but I was unable find it. Sorry if this is a duplicate. I will delete it if there is answer at SO already.
Many thanks.