Javascript Array Sum
<p>How I can sum up the values filled in unitprice array using javascript
Here is my html.</p>

<pre><code>   &lt;td&gt;
       &lt;input type="text" style="width: 60px; background: none repeat scroll 0% 0% rgb(255, 255, 255);" maxlength="4" id="unitprice" name="unitprice[]"&gt;
   &lt;/td&gt;
   &lt;td&gt;
       &lt;input type="text" style="width: 60px; background: none repeat scroll 0% 0% rgb(255, 255, 255);" maxlength="4" id="unitprice" name="unitprice[]"&gt;
   &lt;/td&gt;
</code></pre>
