Category: DOM Insertion, Around

Category: DOM Insertion, Around

These methods allow us to insert new content surrounding existing content.

.unwrap()

Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.

.wrap()

Wrap an HTML structure around each element in the set of matched elements.

.wrapAll()

Wrap an HTML structure around all elements in the set of matched elements.

.wrapInner()

Wrap an HTML structure around the content of each element in the set of matched elements.

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jquery.com/category/manipulation/dom-insertion-around

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部