title: removeClass after hasClass isn't working
body: <p>Do you know why using <code>removeClass</code> after <code>hasClass</code> give me <code>Uncaught TypeError: undefined is not a function</code>?</p>
  
  <p>In code below, the alert won't be executed since the code above it produce an error..
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$("input[type='button']").hasClass("scroll").removeClass("inactive");
  alert("success");</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Can anybody provide other way to achieve my goal?</p>