Last active
March 11, 2017 11:03
-
-
Save displaynone/1c5e8fa24a3101a01b7e429e5e320b12 to your computer and use it in GitHub Desktop.
jQuery wrap in Vanilla JS
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
// https://codepen.io/luissacristan/pen/vxmKoP | |
document.querySelectorAll( 'div' ).forEach( elem => { | |
elem.outerHTML = '<div>' + elem.outerHTML + '</div>'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment