title: Add css class onClick with jquery
body: <p>Someone help me how to add <strong>css</strong> class with <strong>jquery</strong>? I've bootstrap tab content with the current class have a class "<code>active</code>".</p>
  
  <pre><code> &lt;div class="tab-content"&gt;
     &lt;div class="tab-pane **active**" id="one"&gt;
        &lt;div class="row"&gt;
  </code></pre>
  
  <p>and my other tab code is:</p>
  
  <pre><code>    &lt;div class="tab-pane" id="two"&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-md-12"&gt;
  </code></pre>
  
  <p>if i click a tab with <code>id</code> two, i want to add <code>active</code> class on <code>class="tab-pane"</code>. </p>