Is there any way to store form state in for example cookie and retrieval it ? I checked serialize API but I have no idea how to retrieval serialized data on the form.
I prefer .serialize() and parsing with .split() over .searializeArray() and JSON parsing.
.serialize()
.split()
.searializeArray()
qs = $("#form_id").searialize() // generates query string, e.g: "name=John&age=21" f = {} qs.split("&").map( p => p.split("=") ).forEach( ([k,v]) => f[k] = v ) // f === {name: "John", age: "21"}