title: addClass('x') always return false...?
body: <p>I have a question with JS and I would like to know why it happens.</p>
  
  <p>I am using .addClass('x') and it always return false when it isn't truth.</p>
  
  <p>HTML:</p>
  
  <pre><code> &lt;a href="#" id="botonChangeAlert" class="btn-warning"&gt; btn-?  &lt;/a&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>$("#botonChangeAlert").click(ejecutarChangeAlert);
  
  function ejecutarChangeAlert() {
      //$("botonChangeAlert").hasClass("btn-warning");
      alert($("botonChangeAlert").hasClass("btn-warning"));
      //alert($("botonChangeAlert").hasClass("btn-alert"));
  }
  </code></pre>