this
refers to the current element in the set.The .wrapAll()
function can take any string or object that could be passed to the $()
function to specify a DOM structure. This structure may be nested several levels deep, but should contain only one inmost element. The structure will be wrapped around all of the elements in the set of matched elements, as a single group.