$("#start").find(divs where class=desc).show()
<div id="start">
<div class="desc" style="display:none;"></div>
</div>
How do I do that?
$("#start").find(divs where class=desc).show()
<div id="start">
<div class="desc" style="display:none;"></div>
</div>
How do I do that?
Just like the jQuery() function, find() takes a CSS selector as an argument.
$("#start").find("div.desc").show();
find is the equivalent of context searching, so the above is the same as:
$("div.desc", "#start").show();