I am adding a class to an element, as soon as a event is triggered. This class should change the elements opacity. This works perfectly in Firefox, but not in Chrome (and Canary) as well as Opera and -big surprise- IE8.
Here is the CSS:
.bx-controls-direction .disabled {
opacity: 0.5;
background-color: #fff;
cursor: default;
}
If I disable the property with the inspector and enable it again, it works fine. Strangely enough, it works on other elements. This would let one assume, that there is a problem with the JS and I would agree but the class gets added correctly.
EDIT: The html (simplified)
<section class="slider box">
<div class="full-width first-line">
<div class="one-third-with-padding box">
<ul class="bxslider big-slider" data-has-pager="false" data-controlls-color="#9131dd">
<li class="text"><h2>Head</h2>
<div class="first" >
<p>Text</p></div>
</li>
<li class="text"><h2>HEAD2</h2>
<div class="first" >
<p>Text2</p>
</div>
</li>
<li class="text"><h2>HEAD3</h2>
<div class="first" >
Text3
</div>
</li>
</ul>
</div>
</div>
</section>
<div class="bx-controls-direction">
<a style="background-color: rgb(145, 49, 221);" class="bx-prev" href="">Prev</a>
<a style="background-color: rgb(145, 49, 221);" class="bx-next disabled" href="">Next</a>
</div>