Is there a way to retrieve all styles applied to an ID using jQuery in order to reuse them later on another tag? For example, like this CSS:
div#myid{
width:100px;
height:100px;}
So that I can later use something like:
for (var parts in $('#myid').css())
alert ('all parts of the style' + parts);