Created
August 29, 2013 19:06
-
-
Save cdl/6382121 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Here's what I'm trying to achieve: | |
// | |
// - if an element has the class "small-rm", remove any classes that begin with "small-" from it | |
// - if an element has the class "pull-rm", remove any classes that begin with "pull-" from it | |
// | |
$(".small-rm").removeClass("[class^='small-']"); | |
$(".pull-rm").removeClass("[class^='pull-']"); | |
// Should this not work? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment