Fun fact: Creating a virtual object in JQuery via the clone method makes some functions unable to interact with it.
For example, the following will work as expected, adding the class to the clone and not the original:
The following, however, will NOT work:
As a result, the clone will remain unchanged. If you want to use wrap, and other functions with this limitations, you’ll need to place it somewhere in the DOM first, and then manipulate it.