Joydip Panchal Javascript Tutorial
How to get value from textbox in javascript?

Example :

<html>
<head>
<script type="text/javascript">
function getValue()
{
var val = document.getElementById("textbox1".value;
alert(val);
}
</script>
</head>
<body>
<input type="text" id="textbox1" />
<button onClick="getValue()">Get Value</button>
</body>
</html>
Like · Comment ·
Ansari Md Tahir and 3 other like this

Er Krupa Patel

that's gud
Like · 4 ·

Jaydip Pithva

what good
Like ·

Ansari Md Tahir

3 ways we can get value in javascript..
Like ·
Download Android App