0
Sir please can I use the data input by the user in form as a value of a variable
please i have to know hiw the websites show less than 18 years on the home screen when i type a value less than 18 in the age box
4 Respuestas
+ 4
(id is input)
var value = $("#input").val();
this with jquery
pure js would be:
var x = document.getElementById("input");
var value = x.value;
+ 3
just to keep it more nice, and u can use that id again without writing all again, just x.something
+ 1
praveen you have to use a different language along side html5 such as jquery or JavaScript to work with integers.
+ 1
kawaii what is the need of
var value=x.value