Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

$(elem).removeClass(regExp) and $(elem).hasClass(regExp)

branch: gh-pages

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 test
Octocat-spinner-32 README.mdown
Octocat-spinner-32 jquery.hasClass.js
Octocat-spinner-32 jquery.removeClass.js
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.