+ 1

How or when the wrap() function is being called

A function is executed only when it's called, how is the wrap function is being called.

13th Mar 2018, 8:06 AM
Gourab Chanda
Gourab Chanda - avatar
1 Réponse
0
The following code $('span').wrap('div'); would find all span elements and wrap each in a div element, producing the following output: <div> <span></span> </div> Refer to the documentation at http://api.jquery.com/wrap/.
16th Mar 2018, 9:13 AM
MrHallows
MrHallows - avatar