title: Can't make the if else jquery statement work
body: <p>I added the code to the js below. When you click on either the Sign up or Login the arrow moves / point up, but when you close it again it stay that way. Can someone help me out figure what to do.</p>
  
  <p>I tried using this post but cant make this work either <a href="https://stackoverflow.com/questions/520250/jquery-if-div-doesnt-have-class-x">here</a></p>
  
  <p>Here is the Jquery script I use</p>
  
  <pre><code>$(document).ready(function () {
          $('#login-trigger').click(function () {
              $('#login-content').slideToggle();
              $(this).addClass('active');
              if ($(this).hasClass('active')) $(this).find('span').html('&amp;#x25b2;');
  
              $('#signup-content').slideUp();
          })
          $('#signup-trigger').click(function () {
              $('#login-content').slideUp();
              $(this).addClass('active');
              if ($(this).hasClass('active')) $(this).find('span').html('&amp;#x25b2;');
  
              $('#signup-content').slideToggle();
          });
      });
  </code></pre>
  
  <p>Here is my <a href="http://jsfiddle.net/pd6sW/" rel="nofollow noreferrer">jsfiddle</a>, ( I know some people don't pref jsfiddle but since I have a lot of code and it will be so much easier to show what I'm trying to do with it)</p>