title: how to get a td value of a table using javascript
body: <p>I have a aspx file like has HTML like  below:</p>
  
  <p><img src="https://i.stack.imgur.com/c8HGR.jpg" alt="enter image description here"></p>
  
  <p>I want to get the value 37.23961( as seen above).</p>
  
  <p>how do i get this value ( td with iindex 6 of table 'gridview2) using javascript ?</p>
  
  <p>MyHTML:</p>
  
  <pre><code>&lt;table rules="all" id="GridView2" style="width:542px;border-collapse:collapse;" border="1" cellspacing="0"&gt;
      &lt;tbody&gt;
      &lt;tr&gt;
          &lt;th scope="col"&gt;hname&lt;/th&gt;
          &lt;th scope="col"&gt;haddress&lt;/th&gt;
          &lt;th scope="col"&gt;hphone&lt;/th&gt;
          &lt;th scope="col"&gt;hhours&lt;/th&gt;
          &lt;th scope="col"&gt;hrating&lt;/th&gt;
          &lt;th scope="col"&gt;hlat&lt;/th&gt;
          &lt;th scope="col"&gt;hlong&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Kaiser Permanante&lt;/td&gt;
          &lt;td&gt;200 Fremont boulevard&lt;/td&gt;
          &lt;td&gt;5105199000&lt;/td&gt;
          &lt;td&gt;Mon-Fri : 8:00 AM - 11:00 PM, Sat, Sun: 10:00 AM- 6:00PM&lt;/td&gt;
          &lt;td&gt;3&lt;/td&gt;
          &lt;td&gt;37.23961&lt;/td&gt;
          &lt;td&gt;-121.800278&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>