Not long ago, Dustin Diaz posted an updated version of his short and to the point guide on creating and removing HTML / XHTML elements dynamically using JavaScript / ECMAScript. His original guide from 2005 was very popular, but perhaps getting a little outdated …

So, if you’re like me and you’re into this Web 2.0 stuff, it could certainly become a handy quick reference for the future.

I recommend you check out his guide “Add and Remove Elements with JavaScript (reprise)”.

Learn more