20

Are there any good jquery plugins for using html 5 local storage?

Kyle
  • 21,377
  • 37
  • 113
  • 200

3 Answers3

16

There's no need for plugins here, since you can access it very quickly:

localStorage.setItem("key", "value");
var value = localStorage.getItem("key");

That's not to say someone won't make plugins in the future (but how would you do cross-browser support? either there's local storage or there isn't). But you don't need to wait on a plugin for anything here, you can start using it (provided the browser supports it) today.

Nick Craver
  • 623,446
  • 136
  • 1,297
  • 1,155
2

If you want a light plugin that has compatibilty with old browsers use this:

https://github.com/artberri/jquery-html5storage

artberri
  • 1,327
  • 13
  • 26
1

jStorage is good. It makes use of HTML5 local storage if available — and it even works with IE6

PHearst
  • 751
  • 6
  • 29