[jQuery] conditional addClass to previous sibling?

[jQuery] conditional addClass to previous sibling?


Hey guys,
Here's another one I've recently been stumped on...
say I have an unordered list that is like so:
<ul class="dishsection">
<h3>Title</h3>
<li class="entry"></li>
<li class="addition"></li>
<li class="addition"></li>
<li class="addition"></li>
<li class="entry"></li>
</ul>
And what I want to do is find every instance of where an element with
the class "entry" is preceded by an element with the class "addition",
and then I want to add a class of "follower" to "entry" class.
Is there any reason this wouldn't work:
$(".entry").prev(".addition").addClass("follower");
??
Thanks!