Browser is chromium (under ubuntu)
This is a chunk of code: (of course) The alert messages shows the right value. but the points element doesn't get the right value, it actually gets empty. Can anybody tell me why?
Here's how points element is defined.
<input type='number' id='points' value='0'/>
and here is how javascript code is supposed to populate it.
alert(request.responseText);
document.getElementById("points").value=request.responseText;
.value
is perfectly valid. I suspect the problem is thatrequest.responseText
is empty. What does the alert say?number
cannot have non-numeric content?