Last active
April 4, 2016 17:37
-
-
Save bwll/e76f569f809633cf9e0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Remove dynamic IDs from elements in Optimizely's visual editor | |
Note: The optimizely_evaluate comments ensure the IDs aren't removed on the live site and should not be omitted. | |
*/ | |
/* _optimizely_evaluate=editor_only */ | |
$("[id*='string']").each(function() { | |
$(this).removeAttr('id'); | |
} | |
}); | |
/* _optimizely_evaluate=end_editor_only */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment