Last active
December 14, 2015 11:58
-
-
Save yagopv/5082782 to your computer and use it in GitHub Desktop.
Get outer HTML from jquery object
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
$element = $("<div><p>Hola</p></div><div><p>Hola</p></div><div><p>Hola</p></div>"); | |
$('<div>').append($element.clone()).html(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment