how can add multiple values one textbox to another textbox in javascript?
<pre><code>&lt;script type="text/javascript" language="javascript"&gt;
function addElement() {
  var ni = document.getElementById('occupation').value;
  var numi = document.getElementById('theValue');
   numi.value = ni;
&lt;/script&gt;
</code></pre>

<p>i use this code for add one text box values to another but this code work only for add one value not multiple value so plz tell me how can i add multiple values.</p>
