Set class attribute in list items