Skip to content

Instantly share code, notes, and snippets.

@adamazing
Created October 23, 2014 22:27
Show Gist options
  • Save adamazing/a10f1bba309254e90f05 to your computer and use it in GitHub Desktop.
Save adamazing/a10f1bba309254e90f05 to your computer and use it in GitHub Desktop.
Quick snippet to stop the jQuery cycle2 plugin stripping the ID of slide elements due to IE7's shallow clone method.
if(navigator.appVersion.indexOf("MSIE 7.")!=-1 || navigator.appVersion.indexOf("MSIE 6.")!=-1 ){}else{
clone.removeAttr( 'id name rel' ).find( '[id],[name],[rel]' ).removeAttr( 'id name rel' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment