0
2 Answers
+ 3
<input type="textbox" id="age">
<input type="button" onclick="age()" value="check">
+ 1
Manar Hasanen
Where did you get value of textbox?
where did you define age variable and store value of textbox?
To get textbox value do this:
var age = Number(document.getElementById('age').value);