title: While typing in a text input field, printing the content typed in a div
body: <p>I have a website where there is a empty box and a input text box.  I want to be able to type something in that input box and have it be printed on the empty box.</p>
  <h2>HTML</h2>
  <pre><code>&lt;div class='printchatbox'&gt;&lt;/div&gt;
  </code></pre>
  <p>which is the empty box and</p>
  <pre><code>&lt;input type='text' name='fname' class='chatinput'&gt;
  </code></pre>
  <p>which is the input box.</p>
  <h2>CSS</h2>
  <pre><code>.printchatbox 
      {border-width:thick 10px;border-style: solid; 
      background-color:#fff;
      line-height: 2;color:#6E6A6B;font-size: 14pt;text-align:left;float: middle;
      border: 3px solid #969293;width:40%;}
  </code></pre>
  <p>If anyone could tell me how to do this I would greatly appreciate it.  Thanks</p>