title: Access Gridview cell from Javascript
body: <p>I've looked at the other post regarding the <a href="https://stackoverflow.com/questions/4097736/how-to-access-gridview-cell-value-with-javascript">Same Question</a></p>
  
  <p>But this is insufficient for what I have to ask about.</p>
  
  <p>It's very simple actually, I want to access the cell value from Javascript.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>var grid = document.getElementById('&lt;%=gvUdgivelser.ClientID%&gt;');
  var cell = grid.rows[0].cells[5].innerText;
  </code></pre>
  
  <p>But I get a <code>undefined</code> in return. If I use the <code>innerHTML</code> I get a result with the full HTML, which I am not interested in.</p>
  
  <p>However, how do I pass a <code>rowIndex</code> to a function from the gridview button, in order for the code to find out which row was clicked?</p>