JSFiddle - React, Tailwind, and code Playground
HTML
<div id="contents"></div>
<input id="myId" value="asdf"></input>
JavaScript
function loadHomec() {
$.get("http://fiddle.jshell.net/", function (data) {
console.log('Ajax finished');
//throw new Error();
$('#contents').html(data);
}).always(function () {
console.log(window.document.getElementById('myId').value);
});
}
loadHomec();