Created
November 15, 2016 11:39
-
-
Save amitmerchant1990/6a4aee82dd4e54296a5c36c44496e5a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Commented out for brevity | |
$(document).ready(function(){ | |
$('#note').bind('input propertychange', function(){ | |
localStorage.setItem("note", $(this).val()); | |
}); | |
if(localStorage.getItem("note") && localStorage.getItem("note")!=''){ | |
var noteItem = localStorage.getItem("note") | |
$('#note').val(noteItem); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment