I want to get the elements within an ordered list using
var ListData = document.getElementById('MyList').innerHTML;
then I would like to store what's contained in the variable ListData to local storage. If possible, how would I go about saving the contents of that variable to localstorage? If this is not possible, I'll accept an alternative. Also, I'd like to know how to retrieve that data once it's saved. Thanks