JSFiddle - React, Tailwind, and code Playground
by dain
JavaScript
$.ajax({
type: 'GET',
url: 'https://www.freecodecamp.org/news/access-control-allow-origin-header-explained/',
success: function(response) {
var insertDiv1 = $('<div></div>');
insertDiv1.html($(response).find('h1').html());
$.ajax({
type: 'GET',
url: 'https://www.freecodecamp.org/news/create-a-custom-fetch-api-from-xmlhttprequest-2cad1b84f07c/',
success: function(response) {
var insertDiv2 = $('<div></div>');
insertDiv2.html($(response).find('h1').html());
$('body').append(insertDiv1, '<hr/>', insertDiv2);
}
});
}
});