title: remove homepage content using javascript
body: <p>I want to hide my homepage content after other link is clicked. My homepage content is into </p>
  
  <pre><code>&lt;div class="active"&gt;
  Homepage content
          &lt;/div&gt;
  </code></pre>
  
  <p>css class active and inactive</p>
  
  <pre><code>.active {   
      margin-top:230px;
      font-size: 30px;
      color:black;
   }  
  .inactive
  {
      opacity:0;
  }
  </code></pre>
  
  <p>I tried this script but it is not working.</p>
  
  <pre><code>   &lt;script src="jquery.js"&gt;&lt;/script&gt;
      &lt;script&gt;
      $("#link-link1").click(function(){
          $(this).removeClass("active").addClass("inactive");
  
                                          });
      &lt;/script&gt;
  </code></pre>
  
  <p>I upload it to an web hosting so you can see full html code <a href="http://skusobnastranka1.php5.sk/" rel="nofollow">here</a> and full css file <a href="https://www.dropbox.com/s/r64w2kyfm0eynj1/main.css" rel="nofollow">here</a></p>