javascript - Save div order in local storage -


I'm using the Shapeshift jQuery plugin which was very easy to set up and use. But now I want to be able to save the div order in local storage so that the browser starts the next time and the div order will not change. I am absolutely new at the local level (like I had started reading about it a few hours earlier) and I am unable to understand it. Please help me

LocalStorage is just a key value combination that can actually be used in this form:

  localStorage.setItem ("key", "value");  

If you want to save the div command in it:

localStorage.setItem ("divorder", "// div" // ");

If you want to store the margin value, then store it in the following form:

  localStorage.setItem ("marginval", "// Margin value // ");  

You can get values ​​from the local level and keep them in variables or you want to:

  var margin = localStorage.getItem ( "Marginval"); Var divord = localStorage.getItem ("radiation");  

Where marginvalency and the drawer is the key to store your prices.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

c# - Create dynamic LINQ query expression at runtime which translates into a parameterized SQL query for nullable types -

cmake - cpack generates RPMs with %files entries that conflict with the RPM spec. How to fix? -