Created
November 13, 2013 03:05
-
-
Save tao4yu/7443005 to your computer and use it in GitHub Desktop.
jQuery get element outer HTML。
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
outer_html = $('selector').clone().wrap('<p>').parent().html(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment