jquery-phoenix
jquery-phoenix copied to clipboard
Expire saved data
Hi
Could there be a parameter for how long the saved data is valid, and if it is expired, removes it?
+1
@martinschilliger seems like it hasn't been developed in some time. Meanwhile, I have added this in my PR, https://github.com/drtomasso/jquery-phoenix
Thank you @drtomasso! One thing I don't understand why, but when I use your code the selection of an option-tag doesn't get stored. Any idea where to look for? EDIT: Just found out, it just doesn't work if the element has an optgroup. With the original jquery-phoenix.js it works…
Optgroup works fine for me. Could you add some code of your option-tag problem? Both html and js
Found it out: The problem was a <select>
which didn't had value="foo"
set. You have to write value="foo"
, otherways phoenix doesn't see it.