Chapter 4 Manipulation
Creating, operating, and adding HTML on the fly
You can create HTML markup on the fly by passing the jQuery function a string of raw HTML.
Sample: sample41.html
It is important to note that when creating DOM structures using the jQuery function, only root
elements in the structure are added to the wrapper set. In the previous code example, the
elements will be the only elements in the wrapper set.
We can use the find() method to operate on any element in the HTML structure once it is
created.
Sample: sample42.html