title: jQuery Code to change text depending on class of slide
body: <p>I'm trying to change the text color of the navigation depending if the first slide has the class <code>"flex-active-slide"</code>, you can see the nav here <a href="https://zadroinc.com/" rel="nofollow noreferrer">www.zadroinc.com</a>.</p>
  
  <p>I'm using this code: </p>
  
  <pre><code>$(document).ready(function() {
   if ($(".slide").eq(0).hasClass("flex-active-slide")) {
     $(".z-nav &gt; li &gt; a").css("color", "white"); 
   } else { 
     $(".slide").eq(1).hasClass("flex-active-slide");
     $(".z-nav &gt; li &gt; a").css("color", "black"); }
  });
  </code></pre>
  
  <p>What I'm running into is that it changes the color, but it won't do it again when the slide changes.</p>