Skip to content

Instantly share code, notes, and snippets.

View imcmahon's full-sized avatar

Ira McMahon imcmahon

View GitHub Profile
@imcmahon
imcmahon / gist:4335d05967f54bb6d14e
Created May 15, 2014 17:12
jQuery remove all classes with the same prefix
$('html').removeClass(function (index, css) {
return (css.match (/\bpage-\S+/g) || []).join(' '); // removes anything that starts with "page-"
});