title: Bootstrap 3 - Navbar active class
body: <pre><code>$("#houses a:contains('Houses')").parent().addClass('active');
  </code></pre>
  
  
  
  <pre><code>&lt;body id="houses"&gt;
    &lt;li&gt;&lt;a href="houses.php"&gt;Houses&lt;/a&gt;&lt;/li&gt; 
  &lt;/body&gt;
  </code></pre>
  
  <p>When I click on the nav(houses), at the inspect element it adds the class active but it doesn't change the color of the nav. adds class but no effect.</p>
  
  <p>I have been trying to follow a tutorial. It seems to work fine there, just not for me.</p>