0

How can I use the values filled in form, On clicking submit button.

I want to make a programme. But I am facing problem in it. Please, answer with js code example.

30th May 2018, 5:21 AM
Mohd. Ahtesham
Mohd. Ahtesham - avatar
1 Réponse
+ 6
<input type="text" id="test"value="1234"> <button onClick="test()">Test</button> <script> function test(){ var res=document.getElementById("test").value; alert(res); } </script>
30th May 2018, 5:31 AM
Sudarshan Rai
Sudarshan Rai - avatar