With jquery there seem to be two ways of finding a list item within an unordered list within the DOM.
$("ul>li");
and
$("ul").find("li");
Is there a reason why the latter might be more preferable? It seems like one would need more code to get the same result.
See Question&Answers more detail:os