title: jQuery select elements of one class within another class
body: <p>I have elements with the class "some_class" inside various divs that have individual classes/ids, like in this example:</p>
  
  <pre><code>&lt;div class="alpha"&gt;
      &lt;p class="some_class"&gt;Text&lt;/p&gt;
      &lt;p class="some_class"&gt;More text&lt;/p&gt;
  &lt;/div&gt;
  &lt;div class="beta"&gt;
      &lt;p class="some_class"&gt;Even more text&lt;/p&gt;
      &lt;p class="some_class"&gt;Bored now&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I can use jQuery to select all elements with the class "some_class" and toggle another class like this:</p>
  
  <pre><code>$('.toggle_button').click(function () {
      $('.some_class').toggleClass('another_class');
      //do more stuff
  });
  </code></pre>
  
  <p>How would I write a function that toggles only those elements of "some_class" that are within the "alpha"/"beta" divs?</p>