jquery: possible to select an item only if it's followed by an item with a specific class?
Posted
by Haroldo
on Stack Overflow
See other posts from Stack Overflow
or by Haroldo
Published on 2010-04-21T07:48:04Z
Indexed on
2010/04/21
7:53 UTC
Read the original article
Hit count: 163
jQuery
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>
© Stack Overflow or respective owner