JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" onclick="getMessage()" value="Get Message" />
<div id="log"></div>
<script type="text/javascript">
function getMessage() {
$.ajax({
url: "https://gmail2work.azurewebsites.net/efservice.asmx/GetMessage",
type: "GET",
dataType: "json",
data: {
'msgid': 1
},
complete: function(data) {
$("#log").html(data);
},
error: function() {
alert("Error22");
}
});
}
</script>
CSS
#log{font:14px monospace;}