I am attempting to retrieve the background colors of elements.
$(document).ready(function(){
$.each('.log-widget',function(){
console.log($(this).css('backgroundColor'));
//$(this).css({'box-shadow':'1px 1px 20px'+});
});
});
It's not working and giving me back an error message:
:TypeError: invalid 'in' operand a
I want to extract the background color of each element and convert it into hex color.