i'm trying getting elements background colors
$(document).ready(function(){
$.each('.log-widget',function(){
console.log($(this).css('backgroundColor'));
//$(this).css({'box-shadow':'1px 1px 20px'+});
});
});
it doesn't works it send me back :TypeError: invalid 'in' operand a
i would like to grab background-color of each element and return that into hex color.