DEV Community

Cover image for Moving Elements and Adding New Ones with DOM Manipulation
Devon Campbell
Devon Campbell

Posted on • Originally published at raddevon.com on

2

Moving Elements and Adding New Ones with DOM Manipulation

If you haven’t watched the first video in my series on basic DOM manipulation, you’ll want to catch up with that first.

In this video, we’ll dig a bit deeper into selecting elements. I’ll also show you how you can move your elements around in the DOM and how to create brand new elements in Javascript and render them onto your page.

If you want to learn Javascript faster, download my Javascript By Example cheatsheet. Just share your email in the form on the original article (back on my site). It’s like a regular Javascript cheatsheet but without all that “foo” and “bar” garbage.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay