Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 16 days 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 14 years ago)
- Default Branch: gh-pages
- Last Pushed: 2015-09-25T14:08:15.000Z (about 9 years ago)
- Last Synced: 2024-04-15T13:56:33.833Z (7 months ago)
- Topics: javascript, jquery, jquery-plugin
- Language: JavaScript
- Homepage: http://plugins.jquery.com/project/removeClass
- Size: 132 KB
- Stars: 19
- Watchers: 5
- 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.