I have been helping my buddy HTML , when I realized that strange thing we did:
<html>
<body>
<input name="test" value="100">
</body>
</html>
how do I retrive that value in JS. I've tried it;
var n = document.getElementById("test");
alert(n);
why it show "null" ?`enter code here