I need to store a html object and show it again...My code copies it but does not display it..
Requirement:
I need the #test
to be copied, removed from the page and should be displayed again.
HTML
<div id="test">
I will be copied, removed and shown again
</div>
jQuery
$( document ).ready(function() {
alert( "ready!" );
var a = $("#test")
$( "#test" ).remove();
a.show()
});