Im doing something wrong here.
im trying to display this {"ari":{"Message":"LP is gut"}} return that I get from an API, but im not very good at typescript, actualy I was trying to modify exsisting code that someone wrote for me for a different thing I had.
Have a look.
$('#frm').submit((e) => {
e.preventDefault();
const val = $('#search').val();
if(!val) { alert('Please enter serial number!'); return false; }
$('#results').html('Searching....');
$.get(`http://localhost:8000/lp/${val}`, (d) => {
console.log("got it!", d);
$('#results').html(`<table style="width:100%"><thead><tr><th>Message</th></tr></thead><tbody><tr><td>${d.ari.Message}</td></tr></tbody>`);
})
return false;
});