jquery: possible to select an item only if it's followed by an item with a specific class?
- by Haroldo
the problem:
I want to use jquery to add a class of 'warm' to any li's neighboring to a li.hot
<ul>
<li></li> * ? (unknown amount of li's)
<li></li>
<li class="hot"></li>
<li></li>
<li></li> * ? (unknown amount of li's)
</ul>