15th Jan 2022, 2:26 PM
Manar Hasanen
Manar Hasanen - avatar
2 Réponses
+ 3
<input type="textbox" id="age"> <input type="button" onclick="age()" value="check">
15th Jan 2022, 3:35 PM
SoloProg
SoloProg - avatar
+ 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);
15th Jan 2022, 2:38 PM
A͢J
A͢J - avatar