JavaScript DOM Crash Course - Part 2

  Рет қаралды 371,735

Traversy Media

Traversy Media

6 жыл бұрын

In this video we will learn how to traverse and move around the DOM with properties like parentNode, parentElement, nextElementSibling and so on. We will also learn how to insert elements with createElement() and createTextNode()
CODE: Code for this video
www.traversymedia.com/download...
BECOME A PATRON: Show support & get perks!
/ traversymedia
ONE TIME DONATIONS:
www.paypal.me/traversymedia
COURSES & MORE INFO:
www.traversymedia.com
FOLLOW TRAVERSY MEDIA:
/ traversymedia
/ traversymedia
/ traversymedia
NEW DISCORD CHAT SERVER:
/ discord

Пікірлер: 282
@eS_Zett
@eS_Zett 6 жыл бұрын
00:23 Traversing the DOM Introduction 01:18 Parents 01:18 .parentNode 04:03 .parentElement 04:48 Children 04:48 .childNodes 06:36 .children 08:03 .firstChild 08:58 .firstElementChild 09:38 .lastChild & .lastElementChild 10:37 Siblings 10:37 .nextSibling 11:17 .nextElementSibling 12:04 .previousSibling 12:31 .previousElementSibling 14:12 Create Elements 14:30 .createElement() 16:50 .createTextNode() 17:27 .appendChild() 17:59 Insert Created Elements Into the DOM 18:12 .insertBefore()
@NairiAreg
@NairiAreg 5 жыл бұрын
parent children sibling...is this a porn?
@rene78
@rene78 5 жыл бұрын
@@NairiAreg Partly yes. He has forgotten one: 14:48 create new dick
@amongdoomers9464
@amongdoomers9464 3 жыл бұрын
@@rene78 lmaoo🤣🤣
@tunamusic2314
@tunamusic2314 3 жыл бұрын
thanks so much
@thearbitarygeek2463
@thearbitarygeek2463 3 жыл бұрын
thanks bruhh
@romeojoseph766
@romeojoseph766 Жыл бұрын
I am Romeo , I am a self taught for now and I'm about 16 years old I have been learning front-end development since one and half years . fan of your work!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@LukasShannon
@LukasShannon 6 жыл бұрын
I've been following you for just a few weeks but your content is incredible! It's thorough while being accessible enough for me to start using right away. Very practical explanations, a great voice for the narrations, and a wide range of content covering all of the tools I need! Thanks a lot!
@TraversyMedia
@TraversyMedia 6 жыл бұрын
Thanks man, I appreciate that
@LukasShannon
@LukasShannon 6 жыл бұрын
Pleasure :)
@mylesdavies9476
@mylesdavies9476 5 жыл бұрын
Was about to write an almost identical comment, absolutely love this channel, thank you so much for creating these videos, they are taking my coding abilities to new levels :)
@muhammadtariq_
@muhammadtariq_ Жыл бұрын
how you guys doing? its been 5 years any progress?
@AzTreandwealth
@AzTreandwealth 6 жыл бұрын
I just want to say a MASSIVE thank you! I have been waiting for someone to create a video tutorial, specifically to do with Javascript and the DOM, and this is a simple yet outstanding one. I love these videos man. I just completed codeacademy a few times but was still a little lost in terms of how to put JS together as a web developer. This stuff has been a great help so far. I have been practicing in the console as you have been explaining and my understanding of JS and the DOM is definately expanding very quickly, and I am starting to connect the puzzle of JS a lot more. Excellent teaching style as well. Once again, many thanks!!
@autumnaurora8299
@autumnaurora8299 4 жыл бұрын
"Neither one of them are inside of each other so they're siblings" Alabama : hold my beer
@OG_CK2018
@OG_CK2018 3 жыл бұрын
??
@saltysexyyy6336
@saltysexyyy6336 3 жыл бұрын
@@OG_CK2018 SWEET HOME ALABAMA INTENSIFIES
@RozArialind
@RozArialind 2 жыл бұрын
tbf child elements are inside their parent elements so...
@iansanders6466
@iansanders6466 4 жыл бұрын
Just recently discovered your channel. This has to be the most concise series on DOM manipulation I have ever seen. Thank you so much for uploading these
@casedup
@casedup 3 жыл бұрын
Duuuuude! Thanks for not editing that out. Good humor and learning just makes sense.
@MuhammadjavohirSuratov
@MuhammadjavohirSuratov 6 жыл бұрын
Great videos, Brad. Keep it up! You are creating tons of videos lately :) Make sure to have a rest time-to-time :)
@umardevs
@umardevs 7 ай бұрын
14:54 thank you for not editing that out. Had a laugh and it boosted my spirit
@christophercarr5865
@christophercarr5865 5 жыл бұрын
Super helpful -- this has been a much-needed supplement to the DOM section in the Udacity Front-End Nanodegree I'm working on (not their strongest section). Now I'm looking for a higher-level walk-through of the DOM's structure and function.
@aaryanbudhirajamusic6874
@aaryanbudhirajamusic6874 6 жыл бұрын
They can show as many ads they want whether it's in the starting of the video, in between or anywhere, I can watch all of them to learn from you. You make a difference bro. I'm in college rn, but when i start earning, you can expect a really big donation. Cheers!
@studythainow
@studythainow 5 жыл бұрын
Really great video. I'm amazed at how little I knew about this. Thank you for the practical explanations.
@triptichhetri
@triptichhetri 5 жыл бұрын
Thank you so much for all the tutorials... learning about parentElement help me finish something that I was stuck on for weeks.
@osiobeajiri1711
@osiobeajiri1711 2 жыл бұрын
Your videos are interesting and full of depth, I had to go download more of your videos. Keep up the good works.
@birsingh5388
@birsingh5388 6 жыл бұрын
var newDick :) 14:50 hahaha, great humour.
@rorjackson
@rorjackson 4 жыл бұрын
I would disable my ad blocker to support you as much as i can, I love your content and method of teaching, You are awesome, I hope one day I shall create something awesome and that credit will certainly go to you. Javascript was a nightmare for me as I am learning from videos only. You have made javascript so easy and fun, thank you again. Keep making more videos kindly.
@nishanthsubramanya1931
@nishanthsubramanya1931 6 жыл бұрын
I disable my adblock when I get into Traversy Media!!! You are just awesome.
@TraversyMedia
@TraversyMedia 6 жыл бұрын
I REALLY appreciate that. Adblock is a killer for us small content creators. Many people do not care, thank you
@essanhaji
@essanhaji 3 жыл бұрын
oh shiit mine is still on , thanks for reminding me to add the channel to my allow ads list on my addblocker
@mofe620
@mofe620 3 жыл бұрын
@@TraversyMedia Hardly a small content creator now though 😊 Well done.
@asmamanzoor7341
@asmamanzoor7341 3 жыл бұрын
Thank you for this great tutorial series on DOM. I have bought your udemy javascript course and intends to buy more courses after completion. Thanks a lot for the lovely courses and tutorials.
@lynguist
@lynguist 4 жыл бұрын
traversing the dom - with traversy the don ;) thank you so much brad!
@omarfarooq686
@omarfarooq686 6 жыл бұрын
Love your videos man
@mudassirjabbar357
@mudassirjabbar357 3 жыл бұрын
I don't know if it has to be linked or not with my previous basic knowledge of js from random platforms, but as a code newbie i would like to testify that this is the best and amazing explanation of basic Javascript...
@drummerplace590
@drummerplace590 6 жыл бұрын
Thnx, very clear and ease to consume the content you provide!!!
@user-oy6my2fg5k
@user-oy6my2fg5k 2 жыл бұрын
man, thank you so much for creating such great courses!
@TheGerm24
@TheGerm24 6 жыл бұрын
"Should I edit that out..." I like your casual style. Its funny and engaging.
@alitalaee7468
@alitalaee7468 2 жыл бұрын
thank you so much for all tutorials you teach everything so well
@sergeiabramov282
@sergeiabramov282 6 жыл бұрын
Great video as always, thank you Brad!
@mlakshmiv78
@mlakshmiv78 3 жыл бұрын
Excellent explanation. You give me hope.
@mostafasalaheldin812
@mostafasalaheldin812 2 жыл бұрын
you made it so simple, thanks from Egypt
@dorsolomon7251
@dorsolomon7251 6 жыл бұрын
In the element insertBefore method, you can also use the "firstChild, lastChild" methods ... Great serise !!
@fanaFSF
@fanaFSF 3 жыл бұрын
Hi. Thanks for all your videos. You have a great gift for explaining things.
@kristinaivanova4170
@kristinaivanova4170 4 жыл бұрын
I just love this guy...I was at the edge of giving up coding and decided no to by watching Brad's tutorials cause they are somehow giving me hope and his voice is my light lol
@widespectrumcreators4691
@widespectrumcreators4691 2 жыл бұрын
Me too! 🥰🤩🙂👍🏼👍🏼
@whatsup1670
@whatsup1670 2 жыл бұрын
Как идут дела?
@bricerichard6305
@bricerichard6305 Жыл бұрын
have you got a job already?
@mnfak4333
@mnfak4333 2 жыл бұрын
Thank you for this awesome tutorial for DOM
@sajad5706
@sajad5706 2 жыл бұрын
This man is a legend.
@erenkucuker3692
@erenkucuker3692 4 жыл бұрын
This video series really helpful. I had been working 2 weeks with javascript tutorials but you need to got these fundamentals rather than operands or something else. Thanks, brad.
@ahmedsandoqah9720
@ahmedsandoqah9720 2 жыл бұрын
We're now in 2021, can you see this kind of courses implement for fronend beginner ?
@deepwoodsengineering3763
@deepwoodsengineering3763 4 жыл бұрын
Once again, great video boss!
@stardommansion6773
@stardommansion6773 5 жыл бұрын
thank you for all of your videos
@barryjohnson2756
@barryjohnson2756 6 жыл бұрын
Awesome two videos. keep the hard work.
@myklrogers4373
@myklrogers4373 5 жыл бұрын
DAAAAAHAHHAA "should I edit that out...nah"! Brilliant :D!!
@amongdoomers9464
@amongdoomers9464 3 жыл бұрын
Time?
@nicolas3030
@nicolas3030 3 жыл бұрын
14:45
@iancarr3923
@iancarr3923 6 жыл бұрын
Excellent as always.
@parkerAmv
@parkerAmv Жыл бұрын
Thank you brad this is really helpful 😇
@photographyhub7309
@photographyhub7309 8 ай бұрын
thanks man I hope every minute of the lesson sticks to my mind as the "newDic" part did lol!
@raymondorenda7385
@raymondorenda7385 Жыл бұрын
Great Stuff. React.js journey started this way. Front end will soon be coded in javascript only. HTML and CSS will technically go behind the scenes.
@adrianoldchannel2494
@adrianoldchannel2494 6 жыл бұрын
This is so wow. I didn't have a clue that this could've been. Thanks Brad for sharing this tremendous know.
@kunalpandey7189
@kunalpandey7189 4 жыл бұрын
thank you for the tutorials
@mavoolumma
@mavoolumma 2 жыл бұрын
You are a life saver ! 🥰
@King-tp6ui
@King-tp6ui Жыл бұрын
14:49 I love this part
@Hattrick249
@Hattrick249 Жыл бұрын
0:57 too lmao, what an interesting way to define what a sibling is
@maximocaceres4685
@maximocaceres4685 Жыл бұрын
same
@kellyt6110
@kellyt6110 2 жыл бұрын
Great video, thank you for your time creating this. Quick question - 19:30 Why are two variables from the header required here...?
@xhappybunnyx
@xhappybunnyx 5 ай бұрын
For anyone who doesn't know (I'm sure traversy's using it nowadays), pressing ctrl-D after youve highlighted text will also select the next instance of that text it finds, so you can do edits like at 4:19 much faster
@juwon3426
@juwon3426 4 жыл бұрын
you're amazing thank you so much
@prashantsingh5142
@prashantsingh5142 6 ай бұрын
Thanks for sharing quality
@tharunrocky14
@tharunrocky14 6 жыл бұрын
Thanks a Lot!!! Respects to you. =)
@tech_channel110
@tech_channel110 6 ай бұрын
very well explained brad
@heshankumarasinghe3159
@heshankumarasinghe3159 3 жыл бұрын
Thank you.... I learnt a lot of stuff.....
@nilupulperera
@nilupulperera Жыл бұрын
Excellent! Thank you very much.
@martins-ecke
@martins-ecke 6 жыл бұрын
that was awesome! Thank you very much =)
@DanielK48
@DanielK48 6 жыл бұрын
Awesome videos ... all 4 of them ;)
@marvinespinoza8671
@marvinespinoza8671 5 жыл бұрын
"Should I edit that out?....Nah". Dead! lol
@nowyouknow2249
@nowyouknow2249 5 жыл бұрын
Thanks Brad!
@anjugarg5006
@anjugarg5006 4 жыл бұрын
thank you brad
@joshchinwendu
@joshchinwendu 5 жыл бұрын
I don't understand while people will still dislike such a nice video
@yatheeshgowda6191
@yatheeshgowda6191 10 ай бұрын
I seriously love the way you explain stuff but the moment I become more conscious was from 14:48
@hirephpdevelopers3840
@hirephpdevelopers3840 6 жыл бұрын
Beautiful.
@peteromoniyi3535
@peteromoniyi3535 5 жыл бұрын
Nice work.
@Glebtc
@Glebtc 2 жыл бұрын
Thank you for not editing "that" out :)
@Alphfirm
@Alphfirm 6 жыл бұрын
Thanks so much!
@NoahNobody
@NoahNobody 6 жыл бұрын
Nice dic joke. I'm glad you didn't edit it out.
@ademmohammed3939
@ademmohammed3939 4 жыл бұрын
LMAO 😂😂😂
@siwilson1437
@siwilson1437 4 жыл бұрын
Laughed for ages at that, caught me right off guard :D
@OG_CK2018
@OG_CK2018 3 жыл бұрын
I am so useless that i did not even get the newDic() joke...will someone pls explain D:
@noyoudidnot3513
@noyoudidnot3513 3 жыл бұрын
@@OG_CK2018 D:
@alexlun4464
@alexlun4464 3 жыл бұрын
Dude I swear your crash course on DOM is one of the cleanest tutorials out there. Nobody, and i mean this after using multiple resources for different topics, can explain things the way you do. I'm really having fun watching your crash course. Sorry I'm poor man can't help you on patreon.
@feliciatimmy9467
@feliciatimmy9467 2 жыл бұрын
Thank you man
@XboneAus
@XboneAus 4 жыл бұрын
01:00 Brad: "Neither one of them are siblings because they are not inside each other". Alabama: uhmmmm
@OG_CK2018
@OG_CK2018 3 жыл бұрын
?
@RozArialind
@RozArialind 2 жыл бұрын
travesty: is that too much? editor: no, no. its fine keep going
@hachij_
@hachij_ 6 жыл бұрын
awesome! part 2!
@thearbitarygeek2463
@thearbitarygeek2463 3 жыл бұрын
Love the content maaaaaaaaan
@belmiris1371
@belmiris1371 6 жыл бұрын
This series is really great, thank you! I'm not sure which avenue to use to suggest themes for future videos so I will try it here. I know you've done Angular 2 videos for Udemy (I signed up for them) so I would really like to see a video on the basics of setting up and getting started with the ag-grid in an angular 2 project. It seems to be the only real free grid but the site is pretty random and confusing and I'm kind of confused with how to get started. As far as I can tell, if you make it, it would be pretty much the first one on the internet. Thanks again.
@AJ-le3yh
@AJ-le3yh 5 жыл бұрын
Traversy Media discussion traversing the DOM!
@moayedmustafa9673
@moayedmustafa9673 5 жыл бұрын
I love you man!
@haileywale1527
@haileywale1527 3 жыл бұрын
i learn new method this is" Newdic()" thanks traversy!
@patrickawuku8056
@patrickawuku8056 2 жыл бұрын
God bless you
@sudhakarkgr3105
@sudhakarkgr3105 6 жыл бұрын
excellent
@gonzaotc
@gonzaotc 2 жыл бұрын
Great video!
@thaivietnhat8503
@thaivietnhat8503 4 жыл бұрын
Thanks Sir.
@joesden9628
@joesden9628 4 жыл бұрын
Grande Brad!!!
@dih12
@dih12 3 жыл бұрын
TRAVERSING THE DOM - It is nice that you got JS DOM rule based on your name :)
@WILLGYS
@WILLGYS 2 жыл бұрын
that was excelent
@panchopaulo111
@panchopaulo111 3 жыл бұрын
A video of your own bloopers would be awesome.
@zropoint5899
@zropoint5899 Жыл бұрын
Hi, Congrates for 2M subs
@limitless0032
@limitless0032 3 жыл бұрын
Thanks a lot
@ai.201
@ai.201 4 жыл бұрын
So good.
@sumedha4168
@sumedha4168 2 жыл бұрын
Thank you
@codybishop7526
@codybishop7526 6 жыл бұрын
Wow, you are awesome. I went from the Coding Train JavaScript fundamentals playlist to this Dom crash course and it makes perfect sense now. We use JS to manipulate webpages by accessing the elements in the Dom. Yay. But one small observation. I think it would so awesome if after you demonstrate how to do something (like get a dom object by calling the class) you could give a real world example of why you would make this distinction. I just pulled that at random, but in general it really helps not only know HOW to do something with code but also knowing WHY you would do something a certain way. Awesome videos man!
@ahmedfathy4691
@ahmedfathy4691 3 жыл бұрын
you are awesome !
@nathanielmelendrez797
@nathanielmelendrez797 4 жыл бұрын
Such a good tutorial! Keep it up!
@tsubimekdeinmansubimekdein3898
@tsubimekdeinmansubimekdein3898 Жыл бұрын
thank you
@Martin958
@Martin958 3 жыл бұрын
When the element was changed to 'Hello Div' why didn't it replace the current of 'Item Lister' in the page tab?
@SumitSarkar96
@SumitSarkar96 3 жыл бұрын
watching for the third time. still learning........
@danbarber9137
@danbarber9137 6 жыл бұрын
Jokes @ 14:50 :D
@awsmnessdesignstudio5252
@awsmnessdesignstudio5252 6 жыл бұрын
lol
@MrBestard
@MrBestard 6 жыл бұрын
haha, glad I lowered my speaker volume
@TheReverOcelot
@TheReverOcelot 5 жыл бұрын
That's why I love Brad, because he is a real human being.
@rickmediacollege9441
@rickmediacollege9441 5 жыл бұрын
The momeny you see this comment and you are on 14:20 and your like "its coming! its coming!"
@Lomaxient
@Lomaxient 5 жыл бұрын
Ooohhh, this is all getting a bit exciting now! (genuinely, that wasn't sarcasm)
@mm178_
@mm178_ 2 жыл бұрын
That was great thank you very much also the link for the video codes doesn't work
@benedictusaryasatya6761
@benedictusaryasatya6761 2 жыл бұрын
Is anyone could explain to me on 19:57 ?? He insert “newDiv” variable but as far as i know “newDiv” class is just consist of “” element. Well he add a lot of stuff on “newDiv” variable but he never store it to variable. My question is does the “newDiv” var automatically store the added information without we saving it first ? Thank you
@carlossantamaria1820
@carlossantamaria1820 Жыл бұрын
amazing
@christophersanchez3118
@christophersanchez3118 3 жыл бұрын
I learn faster from you specially dom manipulation. if i can get a tech job in the future i will join your patreon :D
@jackpaperhands
@jackpaperhands 2 жыл бұрын
BROSKI, you're a fucking legend
JavaScript DOM Crash Course - Part 3
33:45
Traversy Media
Рет қаралды 307 М.
JavaScript DOM Crash Course - Part 1
39:01
Traversy Media
Рет қаралды 1,1 МЛН
Let's all try it too‼︎#magic#tenge
00:26
Nonomen ノノメン
Рет қаралды 53 МЛН
Разбудила маму🙀@KOTVITSKY TG:👉🏼great_hustle
00:11
МишАня
Рет қаралды 2,9 МЛН
Follow @karina-kola please 🙏🥺
00:21
Andrey Grechka
Рет қаралды 21 МЛН
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
FLIP FLOP Hacks
Рет қаралды 102 МЛН
HTMX Crash Course | Dynamic Pages Without Writing Any JavaScript
56:47
Traversy Media
Рет қаралды 127 М.
Learn DOM Manipulation In 18 Minutes
18:37
Web Dev Simplified
Рет қаралды 1 МЛН
The Importance of Specialization in Coding
7:13
Traversy Media
Рет қаралды 97 М.
the new PS4 jailbreak is sort of hilarious
12:21
Low Level Learning
Рет қаралды 377 М.
OpenAI Burned by Scarlett Johansson!
4:27
Theoretically Media
Рет қаралды 26 М.
Async JS Crash Course - Callbacks, Promises, Async Await
24:31
Traversy Media
Рет қаралды 1,4 МЛН
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 623 М.
Are You Too Dumb To Code? A Chat About Imposter Syndrome
7:08
Traversy Media
Рет қаралды 62 М.
Stop Worrying About AI!
6:40
Traversy Media
Рет қаралды 47 М.
How about that uh?😎 #sneakers #airpods
0:13
Side Sphere
Рет қаралды 10 МЛН
phone charge game #viral #tranding #new #reels
0:18
YODHA GAMING RAAS
Рет қаралды 12 МЛН
Готовый миниПК от Intel (но от китайцев)
36:25
Ремонтяш
Рет қаралды 423 М.
Carregando telefone com carregador cortado
1:01
Andcarli
Рет қаралды 1,2 МЛН