css:
#foo1 { color: #FFF; border: 1px solid #000; }
html:
<div id="foo1"></div>
<div id="foo2"></div>
js:
I know that i can fetch the values one by one using css keys, but is there any way to get all the css properties at once, and apply the values. Something like this:
$(function(){
$('#foo2').css($('#foo1').css());
});