jQuery wrapAll() Method

Last Updated Jul 21, 2015, 12:00:06 PM





jQuery wrapAll() Method

jQuery wrapAll() method wraps HTML structure around all elements in the group of matched element in the DOM tree.


Syntax

The jQuery wrapAll() method takes a parameter as any type of string or object. HTML structure will be wrapped around all items matched elements the in DOM tree .

Example

The above jquery wrapAll() method example will produce the following output


jQuery wrapAll() method
Try It Now

Other Advanced jQuery DOM topics you might want to learn
jQuery Basic DOM Methods

jQuery DOM Reference

jQuery DOM Removal

jQuery DOM Insertion Inside

jQuery DOM Insertion Outside

jQuery DOM Insertion Around


Sources and Credits

The content and methods in the tutorial has been referred and updated with jQuery API and The jQuery Foundation

Last Updated Jul 21, 2015, 12:00:06 PM