I have been working with on project. It was working at first but now I get a error when I moved it to a server that we have. I have been working with html and php. Here is the error "(index):26 Uncaught TypeError: Cannot read property 'innerText' of null at saveTable ((index):26) at HTMLButtonElement.onclick ((index):21)" This is from google chrome. And here is line 26 and 21:
Line 21
<button type="button" onclick="saveTable();">Spara</button>
Line 26
xhttp.open("GET", "backend.php?action=save&Adress=" + document.getElementById("Adress").innerText + "&Fastighet=" + document.getElementById("Fastighet").innerText + "&Kostnadsstalle=" + document.getElementById("kostnadsstalle").innerText + "&Fabrikat=" + document.getElementById("Fabrikat").innerText + "&Typ=" + document.getElementById("Typ").innerText + "&Model=" + document.getElementById("Model").innerText, true);