Skip to content

Instantly share code, notes, and snippets.

@Pross
Last active August 29, 2015 13:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pross/8851748 to your computer and use it in GitHub Desktop.
Save Pross/8851748 to your computer and use it in GitHub Desktop.
jQuery( "i" ).each(function( e ) {
var classes = jQuery(this).attr('class') || ''
var check = classes.indexOf("icon-");
if( -1 != check ) {
jQuery(this).attr('class', 'icon ' + classes)
}
})
@kamswife
Copy link

kamswife commented Feb 6, 2014

@kamswife
Copy link

kamswife commented Feb 6, 2014

I'm new, trying to figure this out....lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment