Javatpoint Logo
Javatpoint Logo

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:
  • HTML elements
  • jQuery objects
  • DOM elements

Example of jQuery wrapAll() method

Let's take an example to demonstrate the jQuery wrapAll() method.

Test it Now

jQuery wrapAll() example 2

Test it Now

jQuery wrapAll() example 3

A wrapAll() example with unwrap button:

Test it Now
Next TopicjQuery focus()




Let's Work Together!

Javatpoint is passionate to offer better content to the world. Please mail your contribution to contribute@javatpoint.com. We will show your name and create your user profile. You can contribute the following things:
  • Article on Any Topic (which is not available on Javatpoint)
  • Your Interview Experience on Company
  • Company Interview Questions with Answers
  • Recruitment Process of Company
  • Programs, and Algorithm
  • Videos
  • Test Paper
  • Improve Article

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials