title: Datatables. How to loop through all rows and get id of each tr entry
body: <p>This questions targets to <code>Datatables</code> plug-in for <code>JQuery</code>.</p>
  
  <p>I need to loop through all table rows (even paginated) and get <code>id</code> of each <code>tr</code> element.</p>
  
  <p>HTML table like this:</p>
  
  <pre><code>&lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Header content 1&lt;/th&gt;
        &lt;th&gt;Header content 2&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr id="etc_1_en"&gt;
        &lt;td&gt;Etc 1&lt;/td&gt;
        &lt;td&gt;Etc 2&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr id="etc_1_ru"&gt;
        &lt;td&gt;Etc 3&lt;/td&gt;
        &lt;td&gt;Etc 4&lt;/td&gt;
      &lt;/tr&gt;   
      &lt;tr id="etc_1_fr"&gt;
        &lt;td&gt;Etc 5&lt;/td&gt;
        &lt;td&gt;Etc 6&lt;/td&gt;
      &lt;/tr&gt;   
      &lt;tr id="etc_2_en"&gt;
        &lt;td&gt;Foo 1&lt;/td&gt;
        &lt;td&gt;Foo 2&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr id="etc_2_ru"&gt;
        &lt;td&gt;Foo 3&lt;/td&gt;
        &lt;td&gt;Foo 4&lt;/td&gt;
      &lt;/tr&gt;   
      &lt;tr id="etc_2_fr"&gt;
        &lt;td&gt;Foo 5&lt;/td&gt;
        &lt;td&gt;Foo 6&lt;/td&gt;
      &lt;/tr&gt;       
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>So I need to loop through each row and hide row if last 2 characters is not equal to <code>en</code> (with this checking everything fine, I'm using <code>substr</code>).</p>
  
  <p>I can loop through all rows in following:</p>
  
  <pre><code>tbl = $('#myTable').DataTable();
  var data = tbl.rows().data();
  
  data.each(function (value, index) {
      console.log('Data in index: ' + index + ' is: ' + value);
  });
  </code></pre>
  
  <p>But I can't find a way to get <code>id</code> of <code>tr</code> (with this sample data <code>etc_1_en</code>, <code>etc_1_ru</code> and so on). Could someone help me?</p>
  
  <p>I've tried to pass in function <code>id</code> as parameter, but it returns - <code>undefined</code>.</p>