When I add the class "playing", then I will apply custom CSS to the next li tag. Please review my code and see if you understand.
Please take a look at my code.
<ul>
<li class="playing">li (sibling)</li>
<li id="head">li <b class="block">(sibling)</b></li>
<li>li (sibling with class name "start")</li>
<li>li (the next sibling of li with class name "start")</li>
<li>li (sibling)</li>
</ul>
JQuery :
$(".playing").next("#head .block").css({"color": "red", "border": "2px solid red"});
Jquery is not working with the next() property :(