Problem:
Retrieving data from text area.
Code:
<html>
<head>
<script language="JavaScript">
function hemanth()
{
var a=document.getElementById("ta").value;
document.writeln("You entered value in Text area is:<br/>");
document.writeln(a);
}
</script>
</head>
<body>
<form name="f1" onsubmit="hemanth()">
<center>
<table>
<tr>
<td>
Enter your Address:
</td>
<td>
<textarea id="ta" rows="5" cols="5"></textarea></td>
<tr>
<td>
</td>
<td>
<input type="submit" value="submit">
</td>
</tr>
</table>
</center>
</form>
</body>
</html>
Retrieving data from text area.
Code:
<html>
<head>
<script language="JavaScript">
function hemanth()
{
var a=document.getElementById("ta").value;
document.writeln("You entered value in Text area is:<br/>");
document.writeln(a);
}
</script>
</head>
<body>
<form name="f1" onsubmit="hemanth()">
<center>
<table>
<tr>
<td>
Enter your Address:
</td>
<td>
<textarea id="ta" rows="5" cols="5"></textarea></td>
<tr>
<td>
</td>
<td>
<input type="submit" value="submit">
</td>
</tr>
</table>
</center>
</form>
</body>
</html>
No comments:
Post a Comment