I have a code in a book which reads:
var $d = $("<div>");
in jQuery, what is the difference between
$("div") finds all existing
div elements in the document.
$("<div>") creates a
div element, which you'd then append to the document at some stage (presumably).
If so, is this the standard way of creating new DOM elements in jQuery, or are there other ways?