TAG
JavaScript
Result
Run
License
<div class="mybox"> <span>class mybox's child.</span> <p><span>a descendant of class mybox</span></p> </div> <div><span>tag div's child.</span></div> <p>I am p element.</p> <div>I am div element.</div>
$(function() { $(".mybox ~ div").css("background", "#FFFF00"); });
Console
expand_less
License
License
by DevDic
Close