title: How to get and append table contents if a specific class is found
body: <p>I am wanting to get/append the contents of the tbody of a table , only when the caption span has an a class of "myfranchise"</p>
  
  <p>Existing html </p>
  
  <pre><code>&lt;table&gt;
      &lt;caption&gt;
          &lt;span&gt;
           &lt;a class="myfranchise"&gt;&lt;/a&gt; &lt;!-- Must have this class or do nothing --&gt;
          &lt;/span&gt;
      &lt;/caption&gt;
      &lt;tbody&gt;       &lt;!-----  GET ALL TR DATA BELOW  ------&gt;
          &lt;tr&gt;&lt;th&gt;Player&lt;/th&gt;&lt;th&gt;Week 1 Opponent&lt;/th&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;&lt;a&gt;TEXT&lt;/a&gt;&lt;/td&gt;&lt;td&gt;TEXT&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;/tr&gt;
      &lt;/tbody&gt;      &lt;!-----  GET ALL TR DATA ABOVE  ------&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Here is what i have so far , but i dont know how to write the statement in the find () to get a just the tbody contents if the a class "myfranchise" is found.</p>
  
  <pre><code>    $.get('myurl', function (data) {
        $(data).find('??????').appendTo('#mystarters tbody');
      });
  
  
  &lt;table id="mystarters"&gt;
   &lt;tbody&gt;
          &lt;!-----  APPEND ALL TR HERE  ------&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>