59
jQuery wrapAll()
jQuery wrapAll() method is used to wrap specified HTML elements around all selected elements, in a set of matched elements.
Syntax:
Parameters of jQuery wrapAll() method
Parameter | Description |
---|---|
wrappingElement | It is a mandatory parameter. It specifies the HTML elements that you wrap around the selected elements. Its possible values are:
|
Example of jQuery wrapAll() method
Let’s take an example to demonstrate the jQuery wrapAll() method.
jQuery wrapAll() example 2
jQuery wrapAll() example 3
A wrapAll() example with unwrap button:
Next TopicjQuery focus()