https://github.com/nv/jquery-regexp-classes
$(elem).removeClass(regExp) and $(elem).hasClass(regExp)
https://github.com/nv/jquery-regexp-classes
javascript jquery jquery-plugin
Last synced: 6 months ago
JSON representation
$(elem).removeClass(regExp) and $(elem).hasClass(regExp)
- Host: GitHub
- URL: https://github.com/nv/jquery-regexp-classes
- Owner: NV
- Created: 2011-01-29T13:33:01.000Z (almost 15 years ago)
- Default Branch: gh-pages
- Last Pushed: 2015-09-25T14:08:15.000Z (about 10 years ago)
- Last Synced: 2025-04-08T06:11:44.549Z (9 months ago)
- Topics: javascript, jquery, jquery-plugin
- Language: JavaScript
- Homepage: http://plugins.jquery.com/project/removeClass
- Size: 132 KB
- Stars: 19
- Watchers: 4
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.mdown
Awesome Lists containing this project
README
# jQuery’s hasClass and removeClass on steroids
$("
").hasClass(/-loading$/)
// true
$("
").removeClass(/^icon-/)
//
[Tests](http://nv.github.com/jquery-regexp-classes/test)
[Origins](https://github.com/jquery/jquery/pull/212)
License: MIT.