Skip to content

Instantly share code, notes, and snippets.

@dedosmedia
Last active March 2, 2016 01:52
Show Gist options
  • Save dedosmedia/40c212f5f64b51cd6d9c to your computer and use it in GitHub Desktop.
Save dedosmedia/40c212f5f64b51cd6d9c to your computer and use it in GitHub Desktop.
JS: RemoveClass con un prefijo
$el.removeClass(function(index,classes){
var matches = classes.match(/drop-\d+/); // some-class-somenumber
return (matches) ? matches.join(' ') : '';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment