list - jQuery.cookie saving and loading settings -


i got runtime dynamic unordered list .sortable() want store new listitem order in cookie after drag event. on page reload saved index values loaded cookie previous changed order gets restored.

 <ul id="sortul">....</ul>   $.cookie('newitemorder', $(#sortul).sortable('serialize')); 

that gives me newitemorder value looks this:

item[]=4&item[]=1&item[]=3&item[]=2 

on pageload value

var restorevalues = $.cookie('newitemorder'); 

but how can apply variable ul , li ? im kinda stuck here.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -