@kickscondor/umbrellajs
Version:
Lightweight and intuitive javascript library
32 lines (16 loc) • 384 B
Markdown
## .empty()
Remove all child nodes of the matched elements.
```js
.empty();
```
### Parameters
This method doesn't accept any parameters
### Return
`u`: Returns an instance of Umbrella JS with the empty nodes.
### Examples
Removes all child nodes from all containers:
```js
u("div.container").empty();
```
### Related
[.remove()](#remove) Removes the matched elements.