HOW TO LOAD DYNAMIC INFORMATION IN THE TABLES?
HOW TO LOAD DYNAMIC INFORMATION IN THE TABLES?
Hello, normally to read an endpoint and to capture information in my HTML document I use fetch, (here is an example)
fetch('endpoint').then(response => response.json()).then(json => {json.forEach(element => {contenido.innerHTML += `<tr><td style="text-align: start;">${element.title}</td><td style="text-align: center;">${element.userId}</td><td style="text-align: center;">${element.id}</td><td style="text-align: center;">${multiplicar}</td></tr>` });
How can I do something similar? Or do you already have your own tools to do it?