title: responsive navigation toggle menu issue
body: <p>I have been working on my portfolio website and I can't seem to get my responsive navigation working properly.</p>
  <p>The normal navigation works fine, but the responsive navigation toggle menu presents issues on the mobile version. When the toggle is clicked it changes from the menu icon to the X icon, but the drop-down navigation menu doesn't appear.</p>
  <p>I have been trying to solve this issue and cannot seem to find a solution. Any feedback would be appreciated, HTML, CSS &amp; JavaScript below.</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>$(window).load(function() {
    $('span.nav-btn').click(function() {
      $('ul.nav').toggle();
    })
  
    $(window).resize(function() {
      if ($(window).width() &gt; 660) {
        $('ul.nav').removeAttr('style')
      }
    })
  });
  
  
  function myFunction(x) {
    x.classList.toggle("change");
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>nav {
    letter-spacing: 1.9px;
    float: right;
    padding: 10px;
    margin: 60px 150px 0px 0px;
  }
  
  .nav&gt;li {
    display: inline-block;
  }
  
  .nav&gt;li&gt;a {
    color: #000;
    font-size: 12px;
    padding: 18px;
    transition: all 0.5s ease;
    text-transform: uppercase;
  }
  
  .nav&gt;li&gt;a:hover {
    color: #c3dbc5;
  }
  
  .nav .current {
    font-weight: bolder;
  }
  
  @media screen and (max-width: 900px) {
    nav {
      margin: 0px;
      padding: 0px;
    }
    .nav {
      display: none;
    }
    ul {
      padding: 0px;
    }
    .nav&gt;li {
      margin-top: 50px;
      padding: 15px 0px 0px 15px;
      width: 100%;
      list-style: none !important;
      text-align: center;
    }
    .nav&gt;li&gt;a {
      font-size: 16px;
    }
    .container_nav {
      display: block;
      cursor: pointer;
      position: relative;
      padding: 50px;
      margin-top: 0px;
    }
    .container_nav.change {
      display: block;
      cursor: pointer;
    }
    .bar1,
    .bar2,
    .bar3 {
      width: 35px;
      height: 5px;
      background-color: #333;
      margin: 6px 0;
      transition: 0.4s;
    }
    .change .bar1 {
      -webkit-transform: rotate(-45deg) translate(-9px, 6px);
      transform: rotate(-45deg) translate(-9px, 6px);
    }
    .change .bar2 {
      opacity: 0;
    }
    .change .bar3 {
      -webkit-transform: rotate(45deg) translate(-8px, -8px);
      transform: rotate(45deg) translate(-8px, -8px);
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav role="navigation" id="nav"&gt;
    &lt;ul class="nav"&gt;
      &lt;li&gt;&lt;a href="index.htm" title="Work"&gt;Work&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="aboutme.htm" class="current" title="About"&gt;About&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="files/resume.pdf" target="_blank" title="Resume"&gt;Resume&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="contact.htm" title="Contact"&gt;Contact&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  
    &lt;div class="container_nav" onclick="myFunction(this)"&gt;
  
      &lt;div class="bar1"&gt;&lt;/div&gt;
      &lt;div class="bar2"&gt;&lt;/div&gt;
      &lt;div class="bar3"&gt;&lt;/div&gt;
  
      &lt;span class="nav-btn"&gt;&lt;/span&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>