<a class="control selected" id="control1" rel="1" href="#"></a>
<a class="control" id="control2" rel="2" href="#"></a>
<a class="control" id="control3" rel="3" href="#"></a>
I have a jQuery Slider that have thumbnails in a tags like this:
To make it dynamic, I try to select each
$('#control1.control').css("background-color", "red");
$('#control1.control.selected').css("background-color", "green");
The first selector works, but not the second.