I want to get a value from HTML to my Javascript.
So here's the HTML input section in the body
<input type="text" name="paa" value="0" size="3">
And here's the script part
var paa = document.getElementById("paa").value;
But I only get Null and when I parseInt it I only get NaN.
Surely I'm doing something wrong, but I have no idea what, I've searched for it but other topics seem to work just fine like this or use other stuff like jQuery..
All I want is to get a value from a HTML input to a Javascript variable.