fill hidden filed value using javascript
<p>I have a function called makehash()
I have to fill the value of hash with the return value of makehash()</p>

<pre><code>&lt;input type=hidden name="hash" value=""&gt;
</code></pre>

<p>Please guide me..</p>

<p>EDIT</p>

<pre><code>&lt;form action="http://xxxx.com/test.php" enctype="multipart/form-data" method="post"&gt;
&lt;input type="file" name="datafile" size="40"&gt;
&lt;input type="hidden" name="upload_mode" value="0"&gt;
&lt;input type="hidden" name="hash" value=""&gt;
&lt;input type="submit" value="Upload"&gt;
&lt;/form&gt;
</code></pre>
