Hey there, I'm currently working on dynamically changing the CSS of a website. Let's say we have a div like this:
<div id="fooid" class="fooclass" ></div>
The div has a class "fooclass" and an ID "fooid", and we're getting its background color using:
var bgcolor = element.css( "background-color" );
My issue is figuring out whether that background color is set in the fooid CSS or in the fooclass. Is there any way to determine this? Thanks in advance.