title: Using JQuery For a Universal Nav Bar?
body: <p>I've been reading up on how to create a separate navigation bar that is maintained in a single file for easy updating. After assessing some options, I decided on JQuery as, at the moment, I don't have a site and am just learning how to code.</p>
  
  <p>I'm using this code on the index.html file (followed by the unordered list in a separate nav.html file):</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script&gt; 
      $(function(){
        $("#menu").load("nav.html"); 
      });
    &lt;/script&gt; </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;ul&gt;
        &lt;li&gt;&lt;a href="#" class="active"&gt;Page1&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Page2&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Page3&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Page4&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>And then calling it with this on index.html:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav&gt;
     &lt;div id="menu"&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But nothing happens, the nav bar isn't visible on my page.</p>
  
  <p>Any suggestions as to what's wrong?</p>
  
  <p>Thanks!</p>