Does anyone know how to change a DOM element to an object, and change the object back to DOM element?
I want to convert a DOM element to an object and convert it to JSON using JSON.stringify
.
Anyone know how to do this? Many thanks.
Does anyone know how to change a DOM element to an object, and change the object back to DOM element?
I want to convert a DOM element to an object and convert it to JSON using JSON.stringify
.
Anyone know how to do this? Many thanks.