I have encountered a peculiar issue with jQuery and labels. It's quite strange because everything seems to work fine when I change the background color of a label or its font-weight, but using the :before selector doesn't seem to work.
Any thoughts on this?
jQuery:
$(".something").click( function (event) {
$(".somediv label:before").css("background", "#000")
});
HTML:
<ul>
<li class="somediv">
<label for="winter">winter</label>
<input type="checkbox" class="something" id="winter" />
</li>
</ul>