title: How to change the value of a Hidden Field in a Gridview using Javascript?
body: <p>Ok I need to change the value of a hidden field in a gridview and here is what I have so far:</p>
  
  <pre><code>for(var i = 0; i &lt; gv_Proofs.rows.length; i++)
  {
      var tbl_Cell = gv_Proofs.rows[i].cells[0];
      var sdiFound = false;
  
      for(var x = 0; x &lt; tbl_Cell.childNodes.length; x++)
      {
          if(tbl_Cell.childNodes[x].id == "_ctl0_MasterContentPlaceHolder_gv_Proofs__ctl2_lbl_SDI")
          {
              if(tbl_Cell.childNodes[x].innerHTML == sdi)
                  sdiFound = true;
          }
          if(tbl_Cell.childNodes[x].id == "_ctl0_MasterContentPlaceHolder_gv_Proofs__ctl2_lbl_Updated" &amp;&amp; sdiFound)
              tbl_Cell.childNodes[x].value = "true";
      }
  }
  </code></pre>
  
  <p>can anyone tell me what I am doing wrong? Thank You!</p>