title: Jquery how can i remove the class
body: <p>This is my code and it is a single page website, when i click on toggle bar it displays my 'ul' and when i click on one of the 'a' it will take me to that div. I whant my toggle bar to close back automatically and i don't know how.   </p>
  
  <pre><code>//HTML
  &lt;nav&gt;
  &lt;div class="menu-icon"&gt;
      &lt;i class="fa fa-bars fa-2x"&gt;&lt;/i&gt; \\Toggle Bar
  &lt;/div&gt;
  &lt;div&gt;
     &lt;ul&gt;
        &lt;a href="#home"&gt;Home&lt;/a&gt;
        &lt;a href="#about"&gt;About&lt;/a&gt;
        &lt;a href="#contact"&gt;Contact&lt;/a&gt;
     &lt;/ul&gt;
  &lt;/div&gt;
  &lt;/nav&gt;
  //CSS
  showing{
      max-height: 20em;
  }
  
  //Jquery
  $(document).ready(function(){
      $(".menu-icon").on("click", function () {
          $("nav ul").toggleClass("showing");
  });
  });
  </code></pre>