title: How to parse a table row as parameter to a JS function onClick?
body: <p>I have started to learn html and JavaScript and i can not find a solution for the following issue. 
  I have following html code: </p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8" /&gt;
          &lt;title&gt;&lt;/title&gt;
          &lt;link rel ="stylesheet" type="text/css" href="StyleSheet.css"&gt;
          &lt;script type="text/javascript" src="Script.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
       &lt;body&gt;
          &lt;hr/&gt;
          &lt;table border="1"&gt;
  
              &lt;tr id="e1"&gt;
                &lt;td&gt;&lt;form id="form2"&gt;&lt;input type="hidden" name="id"  /&gt;1&lt;/form&gt;&lt;/td&gt;
                    &lt;td&gt;&lt;input form="form2" type="hidden" name="name"/&gt;aaa&lt;/td&gt;
                    &lt;td&gt;&lt;input form="form2" type="hidden" name="description" /&gt;xyz&lt;/td&gt;
                    &lt;td&gt;&lt;input form="form2" type="submit"  onclick="doSmth(this.parent)" value="Details" /&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
          &lt;/table&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>By pressing the submit button I would like to parse all data elements from the table row("1","aaa","xyz) as parameters to my JavaScript function to proceed them. How can I do this the best way?I tried to give (this) as parameter or (this.parent) but it doesn`t seem to do what I intend at all.</p>
  
  <p>All in all I want to achieve a table with a submit button in each row which submits a particular row.</p>
  
  <p>Many thanks in advance</p>