Coping data in number of rows
<pre><code>&lt;script&gt;
function copy_data(val){
 var a = document.getElementById(val.id).value
 document.getElementById("copy_to").value=a
}
&lt;/script&gt;
</code></pre>

<p>i am using this code in head portion for copying data from one text box to another. I need to know what can i do to copy data in number of fields in different rows to copy data from one column to another of the same row?</p>
