Problem saving list in local storage

Problem saving list in local storage

   Hi everyone,

I´m work in a code based on a listview in jquery. In this code you can add or remove items. Also if you click on a item, this have inside some group of elements. One of this its a on/off slider. The idea its to save teh list in local storage.

I´m saving when i add or when i remove a item of the list. When i start the code the list begins whit 2 elements of the list, and the sliders works perfectly. When i add a new element  also works. But when i run the code again to use the local storage, in the list are the new element as should be, but all the slider doesn´t works again. 

What its the problem?


thanks a lot. I hope somebody can help me with this trouble