title: How to jQuery load one div onto page?
body: <p>This probably has a simple solution, but I am new and can't figure it out. I am trying to just load some text from about.html onto my index page's #content div when I click on my link. The about.html doesn't have anything on it except a div called #content, containing a h2 and some text inside paragraph tags without any styling. Instead it ends up loading the entire index page inside my index's #content div. So far this is what I tried. The name of my index page is called cube2. I know the code is messy, but it's just an experiment and was too lazy to create a new stylesheet, put the CSS in the doc. I apologize for the mess.</p>
  
  <p><strong>Cube2.html Code:</strong></p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" class=" -webkit-"&gt;
  
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  
  &lt;title&gt;Cube2&lt;/title&gt;
  &lt;link href="./cube2_files/css" rel="stylesheet" type="text/css" data-inprogress=""&gt;
  &lt;script src="./cube2_files/jquery.min.js"&gt;&lt;/script&gt;
  &lt;!-- &lt;script src="js/cube-centered.js"&gt;&lt;/script&gt; --&gt;
  &lt;script type="text/javascript" src="./cube2_files/prefixfree.min.js"&gt;&lt;/script&gt;
  
  
  &lt;style type="text/css"&gt;
  body {
  padding: 0;
  margin: 0;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  background-image: url(images/wallpaper-660816.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  }
  .holoheader {
  background-image: url(images/Header.png);
  background-repeat: no-repeat;
  height: 600px;
  width: 700px;
  position: relative;
  margin-right: auto;
  margin-left: auto;
  color: #FFF;
  -webkit-animation: holowrapper ease 2s infinte;
  }
  
  .holowrapper {
  height: 600px;
  width: 700px;
  top: -110px;
  margin-right: 60%;
  margin-left: 40%;
  position: relative;
  /*-webkit-perspective: 1000px;
  -webkit-transform-style: preserve-3d;
  -webkit-transform: rotateY(45deg); */
  -webkit-animation: bounce ease 1.0s infinite alternate;
  }
  @-webkit-keyframes bounce {
      0% { top: -110px; }
      100% { top: -105px; }
  }
  .holoheader h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  color: #FFF;
  text-align: center;
  top: 23px;
  position: relative;
  }
  .hologram {
  font-family: 'Orbitron', sans-serif;
  height: 400px;
  width: 700px;
  margin-right: auto;
  margin-left: auto;
  position: relative;
  background-image: url(images/Filler.png);
  background-repeat: repeat-y;
  top: 68px;
  }
  .holofooter {
  background-image: url(images/Footer.png);
  height: 117px;
  width: 700px;
  position: relative;
  top: 70px;
  }
  .hologram #content {
  color: #FFF;
  text-align: center;
  overflow: scroll;
  overflow-x: hidden;
  height: 300px;
  width: 650px;
  padding-top: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
  padding-left: 25px;
  }
  ::-webkit-scrollbar {
  width: 12px;
  }
  
  ::-webkit-scrollbar-track {
  background-color: #004040;
  opacity: 0.3;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
  border-radius: 10px;
  }
  ::-webkit-scrollbar-thumb {
  -webkit-transition: background-color 0.5s ease 0s;
  background-color: #2A6964;
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);  
  }
  ::-webkit-scrollbar-thumb:hover {
  background-color: #B7EEF2;
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
  }
  .header {
  height: 100%;
  width: auto;
  margin-left: auto;
  margin-right: auto;
  }
  .header #innerheader {
  
  }
  .header #innerheader #logo {
  margin-right: auto;
  margin-left: auto;
  height: 90px;
  width: 600px;
  margin-top: 10px;
  -webkit-animation: slidein 2s 1 normal, fadein 2.5s 1 normal;
  }
  @-webkit-keyframes slidein {
      0% { margin-top: -100px; }
      100% { margin-top: 10px;; }
  }
  @-webkit-keyframes fadein {
      0% { opacity: 0; }
      100% { opacity: 1; }
  }
  #wrapper2 {
  min-width: 600px;   
  }
  .navigationmenu {
  text-decoration: none;
  width: 250px;
  margin-left: 15px;
  padding: 5px;
  height: 90px;
  }
  .navigationmenu ul {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  list-style-type: none;
  margin: 0;
  padding: 0;
  -webkit-animation: glow 1.5s infinite alternate;
  
  }
  /*@-webkit-keyframes glow {
      from { text-shadow: 0 0 0px #55A4AC; }
      to {
  text-shadow: 0px 0px 25px #55A4AC;
  }
  } */
  @-webkit-keyframes glow {
      0% { text-shadow: 0 0 15px #55A4AC; }
      100% { text-shadow: 0px 0px 25px #55A4AC; }
  }
  .navigationmenu ul:hover; {
  
  }
  .navigationmenu ul a {
  text-decoration: none;
  padding-top: 10px;
  padding-right: 5px;
  padding-bottom: 10px;
  padding-left: 5px;
  }
  a {
  color: #fff9d6;
  display: block;
  width: 60px;
  }
  &lt;/style&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;div class="header"&gt;
  &lt;div id="innerheader"&gt;
  &lt;div id="logo"&gt;&lt;img src="./cube2_files/Purelight.png" width="600" height="101"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="wrapper2"&gt;
  &lt;div class="navigationmenu"&gt;
  &lt;ul id="nav"&gt;
      &lt;li&gt;&lt;a href="about.html" class="home"&gt;Home&lt;/a&gt;&lt;/li&gt;
  
       &lt;li&gt;&lt;a href="about.html" class="about"&gt;About&lt;/a&gt;&lt;/li&gt;
  
      &lt;li&gt;&lt;a href="about.html" class="services"&gt;Services&lt;/a&gt;&lt;/li&gt;
  
      &lt;li&gt;&lt;a href="about.html" class="portfolio"&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  &lt;div class="holowrapper"&gt;
  &lt;div class="holoheader"&gt;&lt;h2&gt;Project FreeSky&lt;/h2&gt;
  &lt;div class="hologram"&gt;
  &lt;div id="content"&gt;
    &lt;p&gt;Home&lt;/p&gt;
    &lt;p&gt;Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
  
      The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. &lt;/p&gt;
  &lt;/div&gt;
  
  &lt;script src="http://code.jquery.com/jquery-1.11.1.js"&gt;&lt;/script&gt;
  &lt;script src="js/general.js"&gt;&lt;/script&gt;
  &lt;div class="holofooter"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  
  
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>About HTML.</strong></p>
  
  <pre><code>&lt;!-- about.html code --&gt;    
  &lt;html&gt;    
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;About&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;div id="content"&gt;
  &lt;h2&gt;About&lt;/h2&gt;
  &lt;p&gt;Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in    a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
  
      The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham. &lt;/p&gt; 
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Javascript</strong></p>
  
  <pre><code>// JavaScript
  $(document).ready(function() {
  $('#content').load('content/cube2');
  
  
  
  $('ul#nav li a').click(function() {
      var page = $(this).attr('href');
      $('#content').load('#content/' + page + '.html');
      return false;
  
  });
  });
  </code></pre>