Specificity
You are probably asking yourself, what is specificity and how does it apply to JavaScript?
Specificity is the measure of importance associated with a CSS declaration. This is one of the technologies that makes cascading stylesheets so powerful. If you find yourself attaching classes and not seeing the styles applied, then it is probably a specificity issue. Anyway, Smashing Magazine wrote a really good explanation. Check it out:
