Thanks for the help.
In case anyone needs this, here is what I ended up using.
Code:
$("#scrubberList li span[index]").filter(function() { return $(this).attr('index'); }).each(function()
{
//alert("In the wierd function.");
if($(this).attr("index") == parseInt(current_pg_ind))
{
$(this).removeClass("scrubberBtn").addClass("scrubberBtnSelected").parent().siblings().children().removeClass('scrubberBtnSelected').addClass('scrubberBtn');
return false;;
}
});