Question: How can i store the variables in savestate() method of `TombstoneHelper` class to avoid Tombstone in windows phone 8.

Answer: 
try:

```
$(document).on('click','.test2',function(){
    $('.test2').remove();
});

```

[fiddle](http://jsfiddle.net/suhailvs/AzW7a/2/)
```
$(document).on('click','.test2',function(){
    $('.test2').remove();
});

```

*Reason:Why the above code works and yours does not?*

1.You are dynamically adding elements.In simpler words,the element you appended did not exist when DOM was loaded.

2.You need to assign [Event Delegation](https://stackoverflow.com/questions/1687296/what-is-dom-event-delegation) for any future addition of elements.The method that we usually use like `.click(...) , .on(..)` etc only applies to the elements that are currently in the DOM.

3.This is how you provide Event Delegation.

```
 $(document).on('keyup', '.class', function(){.........})

```