> For the complete documentation index, see [llms.txt](https://jscula.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jscula.gitbook.io/docs/manipulation/.unwrap.md).

# .unwrap()

Removes a wrapper element and keeps its children in place.

```javascript
$('#avatar').unwrap('.avatar-frame');
```

outputs:

```html
    <div id="avater">...<div/>
```

```javascript
$('.image*').unwrap('figure.media-frame');
```

outputs:

```html
<div class="image">...<div/>


<div class="image">...<div/>

...
```
