why are some developers using JQuery’s .find-function like this:
$(document).find('.progress').show();
If you know the name of the class, you can just use:
$('.progress').show();
Even if i have ul-lists and want to select all li-children i can do this just with
$('li')...
Appreciate some clarity…Thanks!
The point of
.find()is to find elements within a parent element.There is no point in
$(document).find(...).