title: Show and Hide using hasClass not working
body: <p>I am trying to make <code>button</code> that show some stuff and then when its clicked again it hide that stuff. I have two buttons (<code>.BB11</code> and <code>.BB12</code>). Clicked button take <code>.OnBotMenu</code> class to change its apperance. <code>#Cont11</code> is the stuff i show. .Showing class makes that stuff visible.</p>
  
  <pre><code>$(".BB11").click(function(){
  
      if $(this).hasClass(".OnBotMenu") {
  
          $(".Showing").fadeOut(500);
  
      }
  
      else {
  
          $(".BB11").addClass(".OnBotMenu");
          $(".BB12").removeClass(".OnBotMenu");
          $("#Cont11").fadeIn(1000);
          $("#Cont11").addClass(".Showing");
  
      }
  });
  </code></pre>