passing value to javascript
<p>hello please help me out regarding this dunction 
 i want to  pass value from the textbox to javascript function and over there i want to store it for other text box . here is the sample code '</p>

<pre><code>&lt;input type="button" value="Add" onClick="addRowToTable(&lt;?php echo $data['pno'];?&gt;);" /&gt;
</code></pre>

<p>here is the javascript function </p>

<pre><code>function addRowToTable(var a)
{
  ........................
.......................

  b.type = 'text';
  b.value ='over here how can i get this value of a ';  
}
</code></pre>

<p>Thanks</p>
