title: On click, toggle class outside of parent
body: <p>I have a simple script that toggles the elements within a parent element however, I need to also toggle any other elements outside the parent separately. Not entirely sure how to do that. This is what I have so far:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('.card-toggle').on('click', function() {
    $(this).parent().siblings('.card-img, .card-text').toggle(250);
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="card"&gt;
    &lt;div class="card-img"&gt;
      &lt;img src="img.jpg" data-location="local"&gt;
    &lt;/div&gt;
    &lt;div class="button-container"&gt;
      &lt;button class="card-toggle"&gt;Domy&lt;/button&gt;
    &lt;/div&gt;
    &lt;p class="card-text"&gt;
      &lt;span style="font-size:0.9em"&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate&lt;/span&gt;
    &lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>