Revision: 28456
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 8, 2010 17:29 by omerta83
Initial Code
//In the below example
$("p").click(function(){
$(this).toggleClass("off");
});
var p;
$("button").click(function(){
if ( p ) {
p.appendTo("body");
p = null;
} else {
p = $("p").detach();
}
});
Initial URL
Initial Description
Initial Title
How to retain information stripped from the DOM by .remove()
Initial Tags
javascript, jquery
Initial Language
JavaScript