I am currently trying to save the original CSS values of an element in an object like so:
var xc = {
"pos": {
"ml": String($(this).css("margin-left")),
"mt": String($(this).css("margin-top"))
}
};
After the values stored, I then change the CSS styles of the element whose values I just stored.
When I try to access the original values from the object, I am returned the new CSS styles of the element.
For example, 235px is stored in the object, I then change the 235px of the element to 10px. The 235px of the element now becomes 10px.