JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test" style="width:500px;height:500px;">Test</div>

CSS

div { border: 1px #000 solid; }

JavaScript

var backup = $("#test").attr("style");
//alert('check the demo it is big now');
$("#test").height("200px").width("200px");
//alert('although the div is small now, here is previous style'+backup);
sp = backup.split(";");
$.each(sp, function(k,v) { 
    var params = v.split(":");
    var att = params[0];
    var val = params[1];
    //alert(att+val);
});