There are two ways we can store a string in jQuery. As a string object, or as a jQuery object.
When stored (cached) as a string object, it can be placed in any number of places of our choosing, but it is essentially merged into the document. If we wish to manipulate it further, we will need to find it.
var para = "<p>This is a paragraph</p>"
Alternately, when stored as a jQuery object, it is a discrete object that can be fetched and moved around at will. Only the one object exists. It is dynamically bound and tracked. If the object is changed, then moved, those changes stay with it in its new location. This will take a minute to think through.
$p = $('<p>').text("This is a jQuery Sprite");
The latter is what I like to refer to as a jQuery Sprite. We can move
$p around the document until the cows come home. I did a study on this concept a few years ago that should be in forum achive (the read only section).