javascript - document.getElementById().value doesn't set the value - Stack Overflow
Your response is almost certainly a string. You need to make sure it gets converted to a number: document.getElementById("points").value= new Number(request.responseText); You might take a closer look at your responseText. It sound like you are getting a ...