jQuery Change Persister for DOM text inputs

/* jQuery tbChangePersister v1.0.0 – April 2015 by Nick Kewney */ (function ($) { $.fn.tbChangePersister = function (next, defaultDelay, domStorageSuffix) { return this.each(function () { var timer = 0, that = $(this), delay = defaultDelay || 5000; that.keyup(function () { clearTimeout(timer); var context = that.val(); if (localStorage) { localStorage.setItem(“tbChangePersisterValue-” + domStorageSuffix, context); } timer = …

jQuery Change Persister for DOM text inputs Read More »