How can i get every styles (even inherited) from an element A to an element B ? in javascript or using jquery.
let\'s tell i have an element
Try to copy every CSS-properties like this:
$("#target").css("border", $("#source").css("border"));
$("#target").css("background", $("#source").css("background"));
#source {
background-color: #dfeacb !important;
color: #bbae4e !important;
border: 1px solid green !important;
}
Why not? you can create the dictionary that may consists of all properties.