JSFiddle - React, Tailwind, and code Playground
by Tushar Gupta
HTML
<div class="copy"></div>
<div class="past"></div>
CSS
.copy{
width:50px; height:50px;
background-color:pink;
border: 1px solid red;
}
JavaScript
$(document).ready(function(){
$(".copy").click(function(){
var array = ['color','width','height', 'background-color', 'border'];
var $this = $(this);
$.each( array , function(item, value) {
$(".past").css(value, $this.css(value));
});
});
});