jQuery wrapInner()

jQuery wrapInner() method wraps all the HTML structure around the content of each element of the selected element. Syntax: $(selector).wrapInner(wrappingElement,function(index)) WrappingElement: It is a compulsory parameter. It is used to specify the HTML elements to be wrapped around the content of each selected element. It can accept HTML elements, jQuery objects, and DOM elements as … Read more