Learn JavaScript DOM Traversal In 15 Minutes
דרג סרטון זה
התחבר כדי לדרג
תיאור
FREE JavaScript DOM Traversal Cheat Sheet: https://webdevsimplified.com/js-dom-traversal-cheat-sheet.html JavaScript Simplified Course: https://javascriptsimplified.com Traversing the DOM in JavaScript is crucial to building projects on your own. In this video I break down all the ways you can traverse the DOM in JavaScript so that you can more easily build projects on your own. 📚 Materials/References: FREE JavaScript DOM Traversal Cheat Sheet: https://webdevsimplified.com/js-dom-traversal-cheat-sheet.html CSS Selector Video: https://youtu.be/l1mER1bV0N0 🧠 Concepts Covered: - How to traverse up the DOM - How to navigate down the DOM - All the methods for DOM traversal 🌎 Find Me Here: My Blog: https://blog.webdevsimplified.com My Courses: https://courses.webdevsimplified.com Patreon: https://www.patreon.com/WebDevSimplified Twitter: https://twitter.com/DevSimplified Discord: https://discord.gg/7StTjnR GitHub: https://github.com/WebDevSimplified CodePen: https://codepen.io/WebDevSimplified ⏱️ Timestamps: 00:00 - Introduction 01:34 - getElementById 03:04 - getElementsByClassName 04:16 - QuerySelector 06:48 - querySelectorAll 07:50 - Selecting Children 09:19 - Selecting Descendants 10:39 - Selecting Parents 12:00 - Selecting Ancestors 13:15 - nextElementSibling 13:51 - previousElementSibling #DOMTraversal #WDS #JavaScript