/ Published in: jQuery
this shows you how to use localStorage to have a page remember content that has been edited with the html5 attribute, contenteditble
Expand |
Embed | Plain Text
//demo of localStorage $(function() { var someSection = document.getElementById('someSection'); $(someSection).blur(function() { localStorage.setItem('toDoData', this.innerHTML); }); if(localStorage.getItem('toDoData')) { someSection.innerHTML = localStorage.getItem('toDoData'); } }); <ul id="someSection" contenteditable="true"> <li>add stuff here</li> </ul>
Comments
Subscribe to comments
You need to login to post a comment.

just because we love christian louboutin,also we think it will made you be more sexy.IN christian louboutin sale,you can get your luxury christian louboutin shoes at cheap price.christian louboutin shoes(born 1964) is a footwear designer who launched his line of high-end women's shoes in France in 1991.trademark protection of this red sole design.cheap christian louboutin shoes,louboutin shoes,christian louboutin shoes on sale,christian louboutin sale,cheap ugg boots,ugg boots saleugg classic tall and ugg classic cardy,ugg classic short,cheap christian louboutin,christian louboutin pumps,cheap christian louboutin