https://github.com/jeremenichelli/empty
Light weight script to clean a node's content
https://github.com/jeremenichelli/empty
Last synced: 3 months ago
JSON representation
Light weight script to clean a node's content
- Host: GitHub
- URL: https://github.com/jeremenichelli/empty
- Owner: jeremenichelli
- License: mit
- Created: 2015-08-29T19:23:46.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-29T03:53:32.000Z (over 9 years ago)
- Last Synced: 2024-10-18T19:38:49.187Z (9 months ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# empty [](https://travis-ci.org/jeremenichelli/empty)
Fastest and cross-browsing way to clean the content in a node.
## Install
If you want to use ```empty```in your project you can just add a script tag to it.
```
```
## Use
```js
var node = document.getElementById('sample');empty(node);
```