title: Get some parent element ID in order to send to JavaScript function
body: <p>I have this table:</p>
  <pre><code>&lt;table id=&quot;tblId&quot;&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th&gt;View Name&lt;/th&gt;
                  &lt;th&gt;View Description&lt;/th&gt;                       
              &lt;/tr&gt;
          &lt;/thead&gt;
              &lt;tbody&gt;
                  &lt;tr id=&quot;1&quot;&gt;
                      &lt;td&gt;Name&lt;/td&gt;                    
                      &lt;td&gt;&lt;span onclick=&quot;jsFunction()&quot;&gt;description&lt;/span&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr id=&quot;2&quot;&gt;
                      &lt;td&gt;Name&lt;/td&gt;                    
                      &lt;td&gt;&lt;span onclick=&quot;jsFunction()&quot;&gt;description&lt;/span&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  <p>In the <code>onclick</code> event of each span I need to send the js function the row id of that specific row. How do I do that?</p>