Skip to content
$(elem).removeClass(regExp) and $(elem).hasClass(regExp)
Latest commit 257332b Sep 11, 2011 @NV Merge pull request #1 from kpowell/gh-pages
fix removeClass breaking the chain
Failed to load latest commit information.
test Share and Enjoy! Jan 29, 2011
README.mdown Tests link added. Jan 29, 2011
jquery.hasClass.js Share and Enjoy! Jan 29, 2011
jquery.removeClass.js Converted spaces to tabs Aug 12, 2011


jQuery’s hasClass and removeClass on steroids

$("<div class='state-loading icon-32'/>").hasClass(/-loading$/)
// true

$("<div class='icon-32 icon-loading disabled'/>").removeClass(/^icon-/)
// <div class='disabled'/>



License: MIT.

Something went wrong with that request. Please try again.