title: Get specific row from table using jQuery
body: <p>I am trying to retrieve data from specific rows in a table based on check box selection done by the user.</p>
  
  <p>For this, I have found two methods <code>eq(rowIndex)</code> and <code>nth-child(rowIndex)</code>. However,it works only when given an absolute values and not when its dynamic.</p>
  
  <p>Have tried the following but no luck on this:</p>
  
  <pre><code>function getData()
   {
      var chkArr = document.getElementsByName('checkbox');
      var checkedRecord = 0;
      for(var i=0; i&lt;chkArr.length; i++)
      {   
      if(chkArr[i].checked)
      {
                checkedRecord = i;
                $('#summaryTable &gt; tbody  &gt; tr').eq('#checkedRecord').children('td').each(function(j)
              //checkedRecord is the row index here
               {
               //fetch values from td
               }); 
            }
        }  
   }
  </code></pre>
  
  <p>Here's how my html looks </p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;
      &lt;td&gt;&lt;input type="text" id="text1"&gt;&lt;/td&gt;
      &lt;td&gt;
          &lt;select&gt;
              &lt;option value="opt1"&gt;Orange&lt;/option&gt;
              &lt;option value="opt2"&gt;Green&lt;/option&gt;
          &lt;/select&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;..&lt;/tr&gt;
  </code></pre>
  
  <p></p>
  
  <p>Any suggestions on this?</p>