JSFiddle - React, Tailwind, and code Playground
HTML
<div id='details'>
test
</div>
JavaScript
$.ajax({
url: "http://www.craigslist.org/about/best/sfo/3251099306.html",
context: document.body,
success: function (data) {
$("#details").html(data);
alert("success");
},
fail: function (data) {
$("#details").html("could not retrive data at this time. Check connection");
alert("Fail");
},
complete: function (data) {
alert(data);
$("#details").html(data);
}
});