Skip to content

Instantly share code, notes, and snippets.

@maylogger
Created March 15, 2011 15:09
Show Gist options
  • Save maylogger/870847 to your computer and use it in GitHub Desktop.
Save maylogger/870847 to your computer and use it in GitHub Desktop.
$(this).removeClass(function(index, cls) {
var classes = cls.split(' ');
var result = new Array();
$.each(classes, function(index, value) {
if(value.substring(0, 3) == 'col') {
result.push(value);
saveCol = saveCol + value;
}
});
return result.join(' ');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment