title: how to change class name of an element by jquery
body: <pre><code>&lt;div class="bestAnswerControl"&gt;
      &lt;div id="ct100_contentplaceholder_lvanswer_control_divbestanswer"  
           class="IsBestAnswer"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to add: </p>
  
  <pre><code>.bestanswer
  {
      // some attribute
  }
  </code></pre>
  
  <p>I want to replace <code>class="IsBestAnswer"</code> of div to <code>class="bestanswer"</code> by jquery. 
  How do I do this?</p>
  
  <p>I am using this approach:</p>
  
  <pre><code>$('.IsBestAnswer').addclass('bestanswer'); 
  </code></pre>
  
  <p>but it's not working.</p>