I have a list where the first-letter of the list is a different color. Currently when jQuery is activated the color changes for each list bullet selected, except for the first letter. Anyone know about the first-letter attribute in CSS and how it can be disabled through a toggle?
IN CSS:
li:first-letter {
color:blue;
}
JQUERY:
$(document).ready(function(){
$('li').click(function(){;
$(this).toggleClass('selected');
$('li:first-letter').css('color',''); //////????
});
});
Does not work; the first-letter CSS rule acts as if it never gets touched through the jQuery. Anyone know? thanks!