title: Fire jQuery if parent lose class
body: <p>I've got a simple Image-Slider (Flexslider 2 based on jQuery) on my website. If an element gets active, the element gets the class called "active-slide".</p>
  
  <p>If this happen, the child  should get the class "show". If the parent lose the class, the child  should lose its class as well.</p>
  
  <p><strong>My current script is not working:</strong></p>
  
  <pre><code>$( ".flexslider .slides li" ).change(function() {
    $( ".child" ).toggleClass("show");
  });
  </code></pre>
  
  <p><strong>HTML CODE</strong></p>
  
  <pre><code>&lt;ul class="flexslider"&gt;
      &lt;li class=""&gt;
          &lt;img src="http://www.placehold.it/400x100"&gt;
          &lt;div class="flax-caption"&gt;Lorem Ipsum&lt;/div&gt;
      &lt;/li&gt;
      &lt;li class="active-slide"&gt;
          &lt;img src="http://www.placehold.it/400x100"&gt;
          &lt;div class="flax-caption"&gt;Lorem Ipsum&lt;/div&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>