Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
$(elem).removeClass(regExp) and $(elem).hasClass(regExp)
JavaScript
branch: gh-pages

Merge pull request #1 from kpowell/gh-pages

fix removeClass breaking the chain
latest commit 257332b46e
@NV authored
Failed to load latest commit information.
test
README.mdown
jquery.hasClass.js
jquery.removeClass.js Converted spaces to tabs

README.mdown

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'/>

Tests

Origins

License: MIT.

Something went wrong with that request. Please try again.