title: how to change the text of a textarea when a dropdown list is selected
body: <p>how to change the text of a textarea when a dropdown list is selected. Here is my code...</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  function fifa()
  {
  abc=document.forms[0].browsers.value;
  if(abc=="");
  document.form1.text1value="you selected A";
  else if
  document.form1.text1.value="you selected B";
  else
  document.form1.text1.value="you selected C";
  }
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;form name="form1"&gt;
  Choose which browser you prefer:
  &lt;select id="browsers" onchange="fifa()"&gt;
  &lt;option value="A"&gt;A&lt;/option&gt;
  &lt;option value="B"&gt;B&lt;/option&gt;
  &lt;option value="C"&gt;C&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;textarea name="text1"&gt;
  
  &lt;/textarea&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>-thannx in advance </p>
  
  <p>-Miss Subanki</p>