jquery-regexp-classes
jquery-regexp-classes copied to clipboard
$(elem).removeClass(regExp) and $(elem).hasClass(regExp)
Results
2
jquery-regexp-classes issues
Sort by
recently updated
recently updated
newest added
Fixes #2 (calling `removeClass()` with no arguments does not remove all classes). jQuery's behavior changed somewhere between 1.4.4 and 1.11.3; the 'empty' test case works against 1.4.4 but not 1.11.3...
Per the [jQuery docs](https://api.jquery.com/removeclass/), calling `removeClass()` with no arguments should remove all classes: > If a class name is included as a parameter, then only that class will be removed...