Try this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm
<html xmlns="http://www.w3.org/1
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Textbox, Label, Javascript</title>
<script type="text/javascript">
<!--
f
var msg = 'Value entered in ';
var msgElem = document.getElementById('m
msg += theElem.id;
msgElem.innerHTML = msg;
}
// -->
</script>
</head>
<body>
<form action="" method="get">
<p>
<label for="TextBox1">Text Box 1</label>
<input name="TextBox1" type="text" id="TextBox1" onchange="updateMessage(th
</p>
<p>
<label for="TextBox2">Text Box 2</label>
<input name="TextBox2" type="text" id="TextBox2" onchange="updateMessage(th
</p>
<p id="msgContainer"> </p>
</
</body>
</





by: gurvinder372Posted on 2009-11-04 at 06:36:25ID: 25739656
Please use the onchange change event of the TextBox input field to call a javascript method. In that JavaScript method, you can set the text value of the label to the message you want to display on the Label. ags/tag_in put.asp
You can use the following link for reference
http://www.w3schools.com/t