LiteJS

Simplicity is the ultimate sophistication. —Leonardo da Vinci

@version    0.1.14
@date       2014-01-02
@stability  1 - Experimental

Elements

DOM builder for browser. Download compressed (2777 bytes, 1230 bytes gzipped) or uncompressed source.

Usage

<script src=elements-lite.js></script> should place inside body.

El("div", "test").to(document.body)
//<div>test</div>

El("a", {id:"link", href:"/home"}).append("Home").to(document.body)
//<a id="link" href="/home">Home</a>

El(".custom", "test").to(document.body)
//<div class="custom">test</div>

Licence

Copyright (c) 2012 Lauri Rooden <lauri@rooden.ee>
The MIT License

Fork me on GitHub