I have an extension. On the options page i am setting options, that obvious.
But i cant get localstorage to work. The options are binded to onclick event with jquery.
Example code how i am setting the values is like this:
localStorage["new_tab"]=$("#n_tab").attr('checked');
localStorage["anim"]=$("#anime").attr('checked');
localStorage["bov_e"]=$("#bov_e").attr('checked');
Where is the problem? Could you point me out in the right way?
Use
localStorage.setItem("itemName", valueHere)to save the value, andlocalStorage.getItem("itemName")to retrieve it.