javascript gridvdiew: Calculate total row cells in column
<p>I have a gridview in an aspx page and it has 3 columns with values in DropDownLists and i want to add those values in a column called total. I am using the following code. But nothing happens. Any help pls ? </p>

<pre><code>var ddlHaul = grid.getElementsByTagName('SELECT')  //tag for ddl
 for (i=1; i&lt;grid.rows.length; i++)
        {
        var total=0;
    for(j=0; j&lt;3; j++)
    {
        var selection = ddlHaul[i].options[ddlHaul[j].selectedIndex].text;
        alert(selection);
         total+=total*selection;

    }        
            grid.rows[i].cells[5].children[0].innerHTML=total;

   }
</code></pre>
