Does jQuery provide a way to find the style defined in a CSS class without first assigning this class to an element?
eg. given the following CSS, I would like to get the Color style assigned by myClass -
.myClass {
color: #ff0000;
}
So far, the only way I've found is to temporarily assign a class to an element and then poll the element, but I get inconsistent results between different browsers.
Thank you for your time!
source
share