I have this script (and it's working fine) for destryong some classes. How can i make a button to restore those destroyed classes?
/* destroy pagination */
$("a.destroy").click(function(){
$("input.destroy").remove();
$("button.destroy").remove();
$("form.destroy").remove();
$("div.destroy").remove();
$("font.des2").remove();
/* destroy jpages */
$("div.holder").jPages("destroy");
/* remove button */
$(this).remove();
});
<!-- destroy jPages button -->
<a class="destroy">Destroy Pagination</a>
How can i restore those classes?
/* restore pagination */
$("a.rest1").click(function(){
????????????????????????
});
<!-- restore jPages button -->
<a class="rest1">Restore</a>