')```
```js
.wrap(selector);
```
### Parameters
`selector`: a formatted string of the desired selector. For example ```.wrap('
')```. Nested selectors are supported in a similar way to [jQuery wrap](http://api.jquery.com/wrap/). For example ```.wrap('
')```. Matched element(s) will be wrapped with innermost node of the first child of a nested argument. See examples below.
### Return
`u`: returns an instance of Umbrella JS with the wrapped node(s)
### Examples
Wrap an element in an html element:
Original element:
```html
Link1
```
```js
u(".example").wrap('
');
```
Result:
```html
Link1
```
Wrap an element in an html element and chain Umbrella methods:
```js
u(".example").wrap('
').attr({class: "wrapper", href: "http://google.com"});
```
Result:
```html
Link1
```
Wrap several elements in an html element
```html
Link1
Link2
Link3
```
```js
u(".example").wrap('
').attr({class: "wrapper", href: "http://google.com"});
```
Result:
```html
Link1
Link2
Link3
```
Nested selector arguments:
```html
Link1
```
```js
u(".example").wrap('
');
```
Result:
```html
```
Nested selector arguments with multiple child nodes:
```html
Link1
```
```js
u(".example").wrap('
');
```
Result:
```html
```