Using jQuery library, this function helps to wrap an HTML structure around each element in the set of matched elements.
The wrap()
function is a jQuery DOM manipulation method, which is used to wrap the specified element around the selected element. The syntax is:
$( element ).wrap( wrappingElement )