title: How to get asp:Table cell values using Javascript?
body: <p>In my aspx file, I define an <strong>asp:table</strong> like below. I want to get its cell contents using Javascript. How can I do that?</p>
  
  <p><em>test.aspx</em></p>
  
  <pre><code>&lt;asp:Table ID="tableID" runat="server"&gt;
  &lt;asp:TableRow&gt;
      &lt;asp:TableCell&gt;
          &lt;asp:Label runat="server"&gt;&lt;/asp:Label&gt;
      &lt;/asp:TableCell&gt;
      &lt;asp:TableCell&gt;
          &lt;asp:TextBox runat="server"&gt;&lt;/asp:TextBox&gt;
      &lt;/asp:TableCell&gt;
  &lt;/asp:TableRow&gt;
  
  &lt;asp:TableRow&gt;
      &lt;asp:TableCell&gt;
          &lt;asp:Label runat="server"&gt;&lt;/asp:Label&gt;
      &lt;/asp:TableCell&gt;
      &lt;asp:TableCell&gt;
          &lt;asp:TextBox runat="server"&gt;&lt;/asp:TextBox&gt;
      &lt;/asp:TableCell&gt;
  &lt;/asp:TableRow&gt;
  &lt;/asp:Table&gt;
  </code></pre>
  
  <p><em>Javascript part in test.aspx</em></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function GetCellContents() {
  var table = document.getElementById('&lt;%=tableID.ClientID %&gt;');
  
  //HERE I WANT TO GET CELL CONTENTS AS ARRAY OF STRING
  }
  &lt;/script&gt;
  </code></pre>