title: How to change the class of an element by clicking on another element with jQuery
body: <p>How i can change the <code>class</code> of an HTML element (X:element) when i click on <code>&lt;a&gt;</code>, and when i click on other elements (div,body,li), the class of this element  (X:element)  change
  This is the example:</p>
  
  <pre><code>&lt;a class='A'&gt;&lt;/a&gt;
  &lt;div class='click'&gt;&lt;/div&gt;
  </code></pre>
  
  <p>When i click on <code>a</code> <code>addClass</code> ( B )</p>
  
  <p>When i click on other elements <code>removeClass</code>:( B )</p>