professional-javascript-11-ChangingTextboxValuesExample.htm / htm
<html> <head> <title>Changing a Textbox Value Example</title> <script type="text/javascript"> function setValues() { var oTextbox1 = document.getElementById("txt1"); var oTextbox2 = document.getElementById("txt2"); oTextbox1.value = "first textbox"; oTextbox2.value = "second textbox"; } </script> </head> <body> <input type="text" size="12" id="txt1" /><br /> <textarea rows="5" cols="25" id="txt2"></textarea><br /> <input type="button" value="Set Values" onclick="setValues()" /> </body> </html>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.