title: Selecting content within the current $(this) selector jquery
body: <p>You can take a look at my <a href="http://jsfiddle.net/18mqn1xg/1/" rel="nofollow">jsfiddle</a> for an example of what I am trying to do. Here is the Javascript code in question:</p>
  
  <pre><code>$("#div_games table tr").each(function(index) {
      var num = index;
      console.log($(this).text());
  });
  </code></pre>
  
  <p>And the table is from <a href="http://www.hockey-reference.com/leagues/NHL_1918_games.html" rel="nofollow">Hockey-reference.com</a>.</p>
  
  <p>I want to organize each row (<code>tr</code>) into a csv based pattern. Here is a small example of what the output would look like:</p>
  
  <pre><code>Date,Visitor,G,Home,G
  1917-12-19,Toronto Arenas,9,Montreal Wanderers,10
  </code></pre>
  
  <p>This is how the first two lines of output would look like. </p>
  
  <p>My question is merely about how I can iterate between each <code>tr</code> and then each <code>td</code> within there?</p>
  
  <p>I want to do something that looks like this:</p>
  
  <pre><code>$("#div_games table tr").each(function(index) {
      $(this ".td").each(function(index) {
          console.log($(this).text + ',');
      });
  });
  </code></pre>
  
  <p>I know this code won't work, but is there a way to do something like this? As a side note I am using the node.js based <a href="https://github.com/cheeriojs/cheerio" rel="nofollow">Cheerio</a>, not actually jquery.</p>