TAG
JavaScript
Result
Run
License
<h2>Click on the text.</h2> <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>
$(function() { $(".mybox span").click(function() { $(this).css("background", "#FFFF00"); }); });
Console
expand_less
License
License
by DevDic
Close