It was my understanding that $() whas a shortcut alias to jQuery() but then I read this iterator. Are they two different objects then?
EDIT: thanks for the replies. Why is there no consistency in the documentation, which uses $() for the most part then switches to jQuery() in the Utilites section? That’s what made me confused.
No, you were right. They’re aliases. What that doc was trying to say there is that selecting something then iterating over the jQuery wrapper that results:
is a different function to the one on the bare object (whether you call it
$orjQuery:which can be applied to any sufficiently array-like sequence, not just jQuery wrapper objects.