title: jQuery if element has class do something
body: <p>I'm trying to toggle whether tabs will be displayed based on whether or not the matched list item has a class of active. I've tried multiple different approaches with if statements and .hasClass but cannot get it to behave as I wish! Any help would be greatly appreciated.</p>
  
  <p>This is an example of one of my attempts:    </p>
  
  <pre><code>$( "#indexHero" ).onClick(function(){
    $("#tabNo1.active"){
      $( "#testID1, #testID2" ).addClass( "hideMe" );
      $( "#testID3" ).removeClass( "hideMe" );
    }
  });
  </code></pre>