I have a question about the priority of CSS classes after encountering a problem today. The situation is as follows:
I have an unordered list which has a class assoc
This sounds like a CSS specificity problem. Try changing your .selectedItem ruleset to:
.selectedItem
.dynamicList li.selectedItem { background-color: #0000ff; }