Trying to get the first visible element of a list using jQuery\'s :first and :visible pseudo-selectors, as suggested here: https://stackoverflow.co
:first
:visible
$('li:visible').eq(0).css('background','blue');