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

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test Share and Enjoy!
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.