reset button to bring back rows to table
hello can someone help, I am trying to implement a reset button to bring back deleted rows from a table. I am using the following code to store the original content of the table rows:
var $table = $("#mytable tbody tr");
$table.data("defaultValue", $table); // this saves the state of the table rows
then I delete a couple of rows from the table and when I hit reset button the default value did not keep the original state and instead it reflects the table with the two deleted rows.. new to this jquery stuff can someone help?