So I just read Nettut's video about HTML5 local storage. However for some reason I cannot get it to work on my computer. (Ubuntu 10.04 Namoroka 3.6.9pre or Google Chrome 5). I'm using this javascript code:
$(function() {
var edit = document.getElementById('edit');
$(edit).blur(function() { localStorage.setItem('todoData', this); });
if ( localStorage.getItem('todoData') ) { edit = localStorage.getItem('todoData'); }
});
I then have a ul with contenteditable="true" and an id of "edit" with one li inside it.
Of course, I have Jquery linked.
Am I doing anything wrong here?