Created
February 7, 2014 04:21
-
-
Save zirosas/8857337 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
$("#foo") | |
.clone() //clone the element | |
.children() //select all the children | |
.remove() //remove all the children | |
.end() //again go back to selected element | |
.text(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Haha I was about to copy that sample too. Really good to see someone else building up their SO Gists!