title: Jquery addClass() is not working
body: <p>I tried this code:</p>
  
  <pre><code>$(document).ready(function(){
      $('.dropdown-toggle').dropdown()
      $(function () {
          $('ul.vehicletypes li').click(function () {
              $('ul.vehicletypes li').removeClass('active');
              $(this).addClass('active');
          });
      });
  });
  </code></pre>
  
  <p>but absolute not working! The <code>.active</code> class is working if I add manualy.</p>
  
  <p>The html code</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-html lang-html prettyprint-override"><code>  
  
    &lt;div class="vehicletype"&gt;
      &lt;ul class="vehicletypes"&gt;
       &lt;li &gt;&lt;a href="index.php?vehicletype=car"&gt;Car&lt;/a&gt;&lt;li&gt;
          &lt;li &gt;&lt;a href="index.php?vehicletype=van"&gt;Van&lt;/a&gt;&lt;li&gt;
       &lt;/ul&gt;
    &lt;/div&gt;
          </code></pre>
  </div>
  </div>
  </p>