Dollar E: A document.createElement Wrapper

Programming – Dollar E: A document.createElement Wrapper – Arantius.com

$E() or “Dollar E”. See it as the reverse of the $() function in prototype. The $() function gets an element that exists, the $E() function creates a new element that doesn’t. It is passed a custom data structure, and it returns a (tree of) DOM element(s). Here’s the source code and an example, and the HTML string produced by running the example.

Related Posts