A web page is open to all kinds of manipulation in JavaScript, including adding, removing and cloning elements. This reading list introduces methods to achieve these ends, with many more to be added.
Prerequisites:: JavaScript Fundamentals
Estimated time: 1 hour
Progressively Enhanced Elements
document.createElement
appendChild & insertBefore
insertAdjacentHTML
Removing Elements
Cloning Elements
Changing Attributes
classList
textContent
hasChild & contains
Photograph by Mike Bitzenhofer, used under a Creative Commons Attribution-NonCommercial-NoDerivs 2.0 Generic license
Enjoy this piece? I invite you to follow me at twitter.com/dudleystorey to learn more.