title: How to get cell value from selected row in HTML table?
body: <p>Having a table like...</p>
  
  <pre><code>&lt;table border="1" style="width: 100%" id="mytab1"&gt;
  &lt;tr id="A1"&gt;
      &lt;td&gt;100&lt;/td&gt;
      &lt;td&gt;John&lt;/td&gt;
      &lt;td&gt;Doe&lt;/td&gt;
      &lt;td&gt;Someplace&lt;/td&gt;
      &lt;td&gt;
          &lt;input type="submit" value="Submit" /&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr id="A2"&gt;
      &lt;td&gt;101&lt;/td&gt;
      &lt;td&gt;Jane&lt;/td&gt;
      &lt;td&gt;Doe&lt;/td&gt;
      &lt;td&gt;Someplace&lt;/td&gt;
      &lt;td&gt;
          &lt;input type="submit" value="Submit" /&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'm trying to get the value of the first cell in a row, in which I've pressed the "Submit" button. I'm a newbie in this. This is an example, but I'm really working on a dynamically created html table in a jsp page, similar to this <a href="https://stackoverflow.com/questions/3793948/how-to-get-cell-data-of-specific-row-from-the-dynamically-created-html-table">How to get cell data of specific row from the dynamically created HTML table?</a> question. I just can't get it working.</p>