diff --git a/entries/wrapAll.xml b/entries/wrapAll.xml index c4c7c49a..80112ca0 100644 --- a/entries/wrapAll.xml +++ b/entries/wrapAll.xml @@ -11,6 +11,14 @@ A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements. + + 1.4 + + A function that returns a structure to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. + + + + Wrap an HTML structure around all elements in the set of matched elements.

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.