As we all know, jQuery's powerful selectors allow you to quickly create an object that contains multiple elements from the DOM, and manipulate all of them in a single line. (Noob stuff, I know, but hang with me, here...) For example:
$("div").html(generateSomethingRandom());
We're saying, "Find all the divs, and generate something random to go inside them." Obviously, the content will only get inserted if one or more divs are on the page.
If you were to write that instruction without jQuery, you'd probably write it a little something like this:
// Translation of $("div").html(generateSomethingRandom());
var divs = findDivs(); // a fictitious method
for(var i = 0; i < divs.length; i++) {
div.innerHTML = generateSomethingRandom();
}
But, in fact, that would be incorrect!