wrap

英[ræp] 美[ræp]

vt. Wrap; wrap; wrap with... (or bandage, cover, etc.); cover

n. Lap blanket, shawl, scarf, scarf, headscarf, blouse, jacket, coat; wrapping paper; confidential

vi. Winding, coiling (usually used in conjunction with over, around, etc.) ; wrap up, wrap up; put on (clothes, etc.)

all

英[ɔ:l]   美[ɔl]   

adj. all; everything; all kinds; extreme, as much as possible

pron.all;everyone;everyone,everything;all situations

adv.entirely;completely; each;very

n.all;[often used as A-]whole;[often used with my, your, his, her, etc.](someone) everything

jquery wrapAll() method syntax

Function:wrapAll() places all selected elements in the specified HTML content or element.

Syntax:$(selector).wrapAll(wrapper)

Parameters:

Parameter Description
wrapper Required. Specifies the content that wraps the selected element. Possible values: HTML code - e.g. ("
") New DOM element - e.g. (document.createElement("div")) Existing element - e.g. ($(".div1" ))Existing elements will not be moved, but will only be copied and wrapped around the selected element.

jquery wrapAll() method example

     

This is a paragraph.

This is another paragraph.

Run instance »

Click the "Run instance" button to view the online instance