title: JQuery addclass/removeclass by div ID
body: <p>I want to addClass()/removeClass() for divs with different class name and I try to find them by <code>id</code>.</p>
  
  <p>How I can make this work?</p>
  
  <p>JS:</p>
  
  <pre><code>$(document).ready(function() {
      $("#button_hof").click(function() {
          $("#button_hof").removeClass("selected");
          $(this).addClass("selected");
          return false;
      });
  }); 
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div id="button_hof" class="button_hof selected"&gt;&lt;/div&gt;
  &lt;div id="button_hof" class="button_hof"&gt;&lt;/div&gt;
  &lt;div id="button_hof" class="button_hof2"&gt;&lt;/div&gt;
  &lt;div id="button_hof" class="button_hof2"&gt;&lt;/div&gt;
  </code></pre>