No need to go to all that trouble. A select box option already has a place to put the content for the other textarea, its value attribute, ex:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Tech Support</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form>
<select onchange="this.form.prob.value=this.options[this.selectedIndex].innerHTML;this.form.solu.value=this.options[this.selectedIndex].value">
<option value="" selected>Select from Drop Down List</option>
<option value="Plug in the Computer">No Power</option>
<option value="Turn on the Monitor">Screen is Dark</option>
</select><br> <br>
<table>
<tr>
<td valign="top">Problem:</td>
<td><textarea name="prob" rows="3" cols="30">Select from Drop Down List</textarea></td>
<td valign="top">Solution:</td>
<td><textarea name="solu" rows="3" cols="30"></textarea></td>
</tr>
</table>
</form>
</body>
</html>
Bookmarks