title: How to close the overlay anchor link menu when clicked?
body: <p><strong>My problem is that , when i open the hamburger menu and click on a navigation link, it does take me to the anchor link section but overlay nav menu doesnot close !</strong></p>
  
  <p>i did tried to make a close css class and toggle class to the jquery nav but it also doesnot work.</p>
  
  <p>My HTML codes are:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $('#toggle').click(function() {
      $(this).toggleClass('active');
      $('#fullnav').toggleClass('open');
    });
  });
  
  $(document).ready(function() {
    $('.hamburger-menu').click(function() {
      $(this).toggleClass('change');
    })
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.fullnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333333;
    z-index: 100;
    visibility: hidden;
    -webkit-transition: opacity .35s, visibility .35s, height .35s;
    transition: opacity .35s, visibility .35s, height .35s;
    overflow: hidden;
  }
  
  .hamburger-menu {
    width: 45px;
    height: 35px;
    position: fixed;
    top: 40px;
    right: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 500;
  }
  
  .line {
    width: inherit;
    height: 5px;
    background-color: #7A7A7A;
    border-radius: 25px;
    transform-origin: right;
    transition: transform .5s;
  }
  
  .line-2 {
    height: 3px;
  }
  
  .change .line-1 {
    transform: translate(-4px, -4px) rotateZ(-45deg);
  }
  
  .change .line-2 {
    opacity: 0;
  }
  
  .change .line-3 {
    transform: translate(-4px, -3px) rotateZ(45deg);
  }
  
  .fullnav.open {
    opacity: 1;
    visibility: visible;
    height: 100%;
  }
  
  .fullnav.close {
    opacity: 0;
    visibility: visible;
    height: 0%;
  }
  
  .fullnav.open li {
    -webkit-animation: fadeInRight .5s ease forwards;
    animation: fadeInRight .5s ease forwards;
    -webkit-animation-delay: .35s;
    animation-delay: .35s;
  }
  
  .fullnav.open li:nth-of-type(2) {
    -webkit-animation-delay: .4s;
    animation-delay: .4s;
  }
  
  .fullnav.open li:nth-of-type(3) {
    -webkit-animation-delay: .45s;
    animation-delay: .45s;
  }
  
  .fullnav.open li:nth-of-type(4) {
    -webkit-animation-delay: .50s;
    animation-delay: .50s;
  }
  
  .fullnav nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    font-size: 3rem;
    font-family: Montserrat-Light;
    font-weight: 400;
    line-height: 7rem;
    text-align: center;
  }
  
  .fullnav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    position: relative;
    height: 100%;
  }
  
  .fullnav ul li {
    display: block;
    height: 25%;
    height: calc(100% / 4);
    min-height: 50px;
    position: relative;
    opacity: 1;
  }
  
  .fullnav ul li a {
    display: block;
    position: relative;
    color: #FFF;
    text-decoration: none;
    overflow: hidden;
  }
  
  .fullnav ul li a:hover:after,
  .fullnav ul li a:focus:after,
  .fullnav ul li a:active:after {
    width: 100%;
  }
  
  .fullnav ul li a:hover::before,
  .fullnav ul li a:focus::before,
  .fullnav ul li a:active::before {
    width: 100%;
  }
  
  .fullnav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    height: 3px;
    background: #FFF;
    -webkit-transition: .35s;
    transition: .35s;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;div class="nav-wrapper"&gt;
    &lt;div class="hamburger-menu" id="toggle"&gt;
      &lt;div class="line line-1"&gt;&lt;/div&gt;
      &lt;div class="line line-2"&gt;&lt;/div&gt;
      &lt;div class="line line-3"&gt;&lt;/div&gt;
    &lt;/div&gt;
  
    &lt;div class="fullnav" id="fullnav"&gt;
      &lt;nav class="fullnavMenu" id="fullnavMenu"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#a"&gt;About&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#b"&gt;Skills&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#c"&gt;Projects&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#d"&gt;Contact&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/nav&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This code on closeing the overlay nav menus is not working. plz help me fix it:</p>
  
  <pre><code>$(document).ready(function () {
  $('fullnav').hide();
  
   });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/XZ8YS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XZ8YS.png" alt="enter image description here"></a></p>