Тёмный

Javascript Dom Manipulation | Javascript Tutorial For Beginners 

developedbyed
Подписаться 940 тыс.
Просмотров 209 тыс.
50% 1

Check out my courses and become more creative!
developedbyed.com
Javascript Dom Manipulation | Javascript Tutorial For Beginners
In this video series we are going to learn modern javascript from scratch. This video is recommended for anyone wanting to learn javascript the modern way with ES2015. No previous programming knowledge is required, so this video series will help you learn javascript as your first programming language.
In this final video we are going to take everything we learning is this beginner javascript series so far and we are going to use our knowledge to add a bit of movement to our html page.
Things covered in this video:
How to grab elements from our HTML.
How to add classes in javascript.
Create a todo list type app in vanilla javascript.
📔 Materials used in this video:
VSCode: code.visualstu...
🛴 Follow me on:
Twitter: / deved94
Github: github.com/Dev...

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 236   
@developedbyed
@developedbyed 5 лет назад
Thank you everybody! Hopefully I covered some of the basics for you well enough! I will strive to do better on my next series for sure! Exciting things are on the way!
@i27tony29
@i27tony29 5 лет назад
I enjoyed this series a lot, please make more content like this but maybe do other frameworks (react) or libraries(bootstrap)! Thanks!
@apriljoyaltiche3298
@apriljoyaltiche3298 5 лет назад
Super duper helpful sir Ed! All are clear. Hope you make more video tuts. Thanks a lot!
@CreativeSequence
@CreativeSequence 5 лет назад
Sir i am waiting for more indepth videos
@subbu2677
@subbu2677 4 года назад
I should say thanks to you for covering essential concept in less time
@ahmedabbas_forweb5774
@ahmedabbas_forweb5774 4 года назад
Ok, your explain is very goooooooooooooooooooooooooooood...
@seanspence2289
@seanspence2289 4 года назад
Man, I've been searching a long time now for someone to explain with CLARITY. This was EXACTLY what I was looking for. I'm so excited I've FINALLY got the FOUNDATION to javascript. Looking forward to those projects. The Best! Keep doing what you doing. Your approach is right, Dev Ed!
@zachmathias26
@zachmathias26 Год назад
Yeah this guy rocks
@thekizmerr6827
@thekizmerr6827 3 года назад
This man deserves a beer. Finally got the hang of it! Thanks :)
@readingplaylists495
@readingplaylists495 3 года назад
I love how you explain everything slowly and don't leave anything out. Great!
@dikshayadav921
@dikshayadav921 3 года назад
I must say that you teach incredibly well.... I love this video and your way to teaching as well... Thanks a tonn.
@gloriareyes6556
@gloriareyes6556 4 года назад
Very helpful but Woo! gets confusing towards the end. Tho, you are a great teacher!
@ti-jesuadeleke5563
@ti-jesuadeleke5563 2 года назад
Yeah, he kind of rushed the end but the other parts were ok.
@nagasesanagasesa7026
@nagasesanagasesa7026 4 года назад
you have being my new idol i also just see your "unhappy confession" video, but i think u r just in problem of "searching problem" (which mean u in condition of u thinking "not have a problem" is "a problem", which not good and will make u always have problem) just want to saying u r great, so take it easy
@mubasharahmad8628
@mubasharahmad8628 4 года назад
Thanks Dev Sir; you really clreared my all concept about JS,thnaks alot sir.
@GauthamKrishnan99
@GauthamKrishnan99 2 года назад
Stuff went from 0-100 real fast with this video! xD
@Tenly2009
@Tenly2009 Год назад
I give up after 4 minutes. You are bad at explaining things. - You did not demonstrate what “transform” does - but you demonstrated “color” and “background-color”. - You said “style.background-color” doesn’t work and “the only thing you need to do” is to capitalize the second word - but that’s *NOT* the only thing. You also need to delete the “-“. 🤦🏻‍♂️ With that lack of attention to detail, I am certain I will be better off watching one of the 50 other videos teaching this stuff. I wasted 4 minutes of my life on this content - plus another 3 minutes to vent in the comments here. It could have been worse and I could have watched the whole video. I’m glad I didn’t - but still annoyed by the first 4 minutes - especially the way you just glossed over “transform” - but felt the need to show us how the “color” property works… 🙄
@erdemoz2187
@erdemoz2187 4 года назад
You're so good! You've made JS so easy and fun to learn!
@harryjamesdesign
@harryjamesdesign 2 года назад
Ed your energy and ability to explain JS simply is beyond anything I have found on YT so far! Thank you for this amazing content!
@mzDododeejay
@mzDododeejay 5 лет назад
Oh you are so cute! Helping me learn JS much quicker!!
@tomisinergy4963
@tomisinergy4963 4 года назад
You are cute too
@johncena-li1bl
@johncena-li1bl 4 года назад
@@spike2565 this is comment section not your whatsapp group
@ahmdm2036
@ahmdm2036 4 года назад
@@johncena-li1bl man. he is literally commenting.
@martinmclean5985
@martinmclean5985 4 года назад
Great series. Love the way you tie it all together with "..and this is how you use it." examples. I have been studying for a few months but this is the first time i understand how it all works. Well played, Ed for the Win.
@alakdam3970
@alakdam3970 5 лет назад
You are far far better than my teacher.
@zg1370
@zg1370 4 года назад
thank you so so much! great video and your explanation is clear and easy to understand :)
@adityarai9146
@adityarai9146 3 года назад
Uncaught TypeError: itemList.appendChild is not a function at HTMLButtonElement. (app.js:18) (anonymous) @ app.js:18 plz correct this one
@ss_GOAT
@ss_GOAT 5 лет назад
Last part adding new lines didn't worked for me.. I have tripple checked my code, but can't find anything different to your code.
@julivanespi
@julivanespi 3 года назад
Thanks for the tutorial so for Ed! Loving the content!
@GeekBastion
@GeekBastion 3 года назад
hit two stones with one? i thought it was hit two birds with one stone XD anyways great video, you are to me the best teacher when it comes to this subject :)
@dianao.moremissd
@dianao.moremissd 2 года назад
Thank you for this video!!
@tannerbarcelos6880
@tannerbarcelos6880 5 лет назад
already knowing python and c++ i was able to breeze this whole series in like an hour (since a lot of the things you perfectly explained were review of course (just a little new syntax only) and by far, you are better than any professor i have had. I am learning front end development on the side so that i can gett an internship soon so that when i graduate cs next year, i can actually go into a roll where i want to be all my life! Thank you for everything and i look forward to reviewing your other tutorials and playlists!
@ashfepranto3759
@ashfepranto3759 3 года назад
Thanks Ed.This video was very helpful..😍
@soulfen555
@soulfen555 5 лет назад
Thank you very very much bro this helped me a "LOT" cause very confuse about Dom manipulation that's why I can create any dom manipulation this helps me to answer the question in my mind. I hope you may upload more videos bro.
@mujtabamujeeb786
@mujtabamujeeb786 4 года назад
text.classList.add("change); return an error saying app.js:4 Uncaught TypeError: Cannot read property 'classList' of null at app.js:4 (anonymous) @ app.js:4
@niskarshaghimire2176
@niskarshaghimire2176 4 года назад
trying to learn in quarantine.. i am facing the same problem
@bibushsinghgc
@bibushsinghgc 4 года назад
@@niskarshaghimire2176 add. => above =>
@gulzatkoshbaeva2162
@gulzatkoshbaeva2162 2 года назад
Super helpful !
@MrBaysah
@MrBaysah 5 лет назад
Hey Ed Thanks for these Tutorial. I was following the tutorial, but I am getting an error "userlist.appendChild is not a function" Below is my js code. const userlist = document.querySelectorAll('.userList'); const listInput = document.querySelector('.list-input'); const addList = document.querySelector('.addListBtn'); //get value from inputs addList.addEventListener('click', function(){ //create Li const newLi = document.createElement('LI'); const liContent = document.createTextNode(listInput.value); //Add the input value inside the li newLi.appendChild(liContent); //Attached the li to the ul userlist.appendChild(newLi); }); What am I doing wrong?
@developedbyed
@developedbyed 5 лет назад
Just use document.querySelector no queryAll on user list. Should work!
@mgxm2217
@mgxm2217 4 года назад
@@developedbyed oh god thank you i was driving crazy
@adityarai9146
@adityarai9146 3 года назад
@@developedbyed thank you man i was stuck on this for around 3 hr thank you for saving my day
@hieuchu7115
@hieuchu7115 Год назад
@@developedbyed Good video! Can you please tell me the name of the vscode theme? I love
@ulysseslindblad3069
@ulysseslindblad3069 4 года назад
Great tutorial! Really enjoyed it!
@Me-og5iy
@Me-og5iy 4 года назад
7:22 next tutorial: how can you land ur mouse on the button so fast?
@imortality8266
@imortality8266 3 года назад
aimbot duh
@aimanjaafar457
@aimanjaafar457 5 лет назад
Ed, thank you very much. I finished the Node.js videos and now I am here because I want to start with the front-end of the website I am building. Thank you again
@gheemail
@gheemail 3 года назад
Im trying to add an element to the li, but also apply some mouseover and mouseout events to the same list. The mouse events are not getting applied to the newly added element. Please help const newName = document.querySelector(".my-name"); const magicButton = document.querySelector(".magic-button"); magicButton.addEventListener("click", function () { newName.classList.add("magicCSS"); }); const userListObj = document.querySelector(".names-list"); const newUserText = document.querySelector(".add-user"); const addUserBtn = document.querySelector(".add-user-btn"); addUserBtn.addEventListener("click", function () { const newUserLi = document.createElement("li"); const newUserVal = document.createTextNode(newUserText.value); newUserLi.appendChild(newUserVal); userListObj.appendChild(newUserLi); newUserText.value = ""; }); const userList = document.querySelectorAll(".names-list li"); for (user of userList) { user.addEventListener("mouseover", function () { this.style.color = "red"; }); user.addEventListener("mouseout", function () { this.style.color = "black"; }); }
@tomisinergy4963
@tomisinergy4963 4 года назад
No doubt you are genius. Its work. Everything is fine. But not clear. const listContent = document.createTextNode(listInput.value); What is this what is that declaration on the end ? I see its value what we put in input text but is it that way to do that? I don't know what to even ask, that .createTextNode it is not clear for me.
@guardianguardian7133
@guardianguardian7133 4 года назад
Perfect way to learn what you really will need, this course is awesome
@myatmin5637
@myatmin5637 4 года назад
for (name of nameList) { name.addEventListener("click", function () { console.log(this); }); } console said uncaught error name.addEventListener is not a function how can i solve this?
@wasifnadeem6209
@wasifnadeem6209 3 года назад
Uncaught TypeError: userList.appendChild is not a function at HTMLButtonElement. I'm getting this error bro... 😢
@Ninja-cn6kj
@Ninja-cn6kj 3 года назад
ur voice is so soothing we feel relaxed while studying
@louie_sevilla
@louie_sevilla 5 лет назад
I laughed at 2:27... Who's Butt did you like to change? haha I love your content. I started self-learning web development in May and your tutorials are very clear and fun. Please don't stop making videos.
@aimanjaafar457
@aimanjaafar457 5 лет назад
Hahahahha. I bet nobody noticed
@solomondamilola6840
@solomondamilola6840 3 года назад
There is no way i can pay for courses on your Website Ed. I am from Nigeria and would like you to kindly create a debit card-enabled payment.
@fredrick2017
@fredrick2017 3 года назад
Idk if its just me or someone else as well. I am getting this error: 127.0.0.1/:1 Refused to apply style from '127.0.0.1:5500/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. I have copied everything letter by letter in both the files by Ed. Still no idea why this would be happening. I looked around the internet and it seems to be a pathing issue. But I might also have skipped something while installing Js. Please help.
@fredrick2017
@fredrick2017 3 года назад
nvm figured it out. I didnt have the script attached im a fool.
@cristian702
@cristian702 Год назад
Thanks Bro!
@Bhuvan_pro_XD_
@Bhuvan_pro_XD_ 3 года назад
sir this is not working in windows 7 but why
@bezyking6213
@bezyking6213 4 года назад
why classlist.add does not work
@michaelkounanis3970
@michaelkounanis3970 3 года назад
Most functions don't work. I tried console log , It works though. Can you please help me?
@abhinayganu
@abhinayganu Год назад
I am crazy in js dom tutorail problems I have understood that Developedbyed is very easy way...
@Skfitnessgarage
@Skfitnessgarage 4 года назад
Hey Dev Ed i have completed the last videos but I m facing the problem in this as I am not getting the output as you got . the console says there is problem with code and it in the if loop, says that there is problem when I begin with if(user of userList) it say you have error from of userList but I have tried the code as it is . so help with this if you can and thanks for the superb content on Javascript.
@TheNamesJT
@TheNamesJT 4 года назад
Umm, at 10:00 i had to add do console.log(this.textContent); because in Firefox it was showing so much stuff that made an Li element and not the value in between the html brackets.
@shashankp5236
@shashankp5236 2 года назад
Bro struggles with variable and class names. That's how you know he's legit
@priyanshusingh0299
@priyanshusingh0299 5 лет назад
My program has an HTML element with class name "trial" and id name "run" I have successfully, linked the javascript with my html document, (I tried it with printing "hello world" in the console) if I am using the following commands, (I have not written any other commands yet, just these to test my script) const trail = document.getElementsByClassName("trial"); console.log (trail); //console is logging the details of our element successfully, but if I use the following commands, instead of the previous.... const label = document.getElementById("run"); console.log (label); //console is logging "null" Why is this happening? Why a javascript can fetch classes but not id's? Please help!
@julesbarryjohnson9789
@julesbarryjohnson9789 3 года назад
Wow thanks, I have looking for this for such a long time. All I've been seeing is just people making "tutorials" whene really it was just a copy and paste process. Thanks for the help, very much appreciated.
@HammerBummer-ro9ik
@HammerBummer-ro9ik 2 месяца назад
Useful Course Developedbyed
@johabib8354
@johabib8354 4 года назад
The command text.style.color is not applying neither in notepad nor in visual studio code
@alessandrospiridigliozzi7943
@alessandrospiridigliozzi7943 3 года назад
at 14:02 is there a specific reason why LI was written all uppercase? Will it not work if written in lowercase?
@wadeatamim3230
@wadeatamim3230 5 лет назад
Watched the video => Like => subscribed . You have high teaching skills, thanks.
@bigk2367
@bigk2367 2 года назад
omg it's hard for me!!!!!!!! :(
@lordpain007
@lordpain007 4 года назад
Javascript Tutorial For Beginners . nop not for beginners
@tamiriscristine4604
@tamiriscristine4604 4 года назад
thank you friend, it was very helpful for me :)
@staneck_music
@staneck_music 4 года назад
This was really usefull. Sub and like straight away for you Sir!
@mdfahadalfaisal8100
@mdfahadalfaisal8100 4 года назад
Can you please tell me why I get an error if I change user of userList into name of nameList or something like that???? I'm kinda stuck here.
@BobcatSchneidermann
@BobcatSchneidermann 3 года назад
Hi Ed, thank you so much for making this series. If you ever find yourself in Copenhagen, Denmark I would be delighted to buy you a beer!
@afolabimojeed
@afolabimojeed 10 месяцев назад
I have been learning JavaScript for a while now without a proper understanding, Your videos give me hope. thanks
@kenichihilversum5589
@kenichihilversum5589 4 года назад
Hi dev my java won't read addEventListener can you help me?
@priyanshugupta7904
@priyanshugupta7904 3 года назад
I don't have words... Great video ..i can't do much but atleast watch full ads on your video that might help me contribute little bit 😉
@Wailky2008
@Wailky2008 3 месяца назад
More than half of the code just doesnt want to work....
@juicy9592
@juicy9592 2 года назад
Dude i just love to see you doing these video's so "au natural" its so funny and i actually learn from you. Im doinmg a ucademy fullstack course and i hate it. next course im buying of you. thank you so much
@altamashjawad6691
@altamashjawad6691 3 года назад
Hey Ed, in this for (user of userList) it is giving me an error that I need to declare 'user' with let, var or const. Any idea why this is happening?
@spieces7497
@spieces7497 4 года назад
Which tutorial covers the 'this' keyboard?
@tima1301
@tima1301 5 лет назад
Thank you very much!
@themrblueshow
@themrblueshow 2 года назад
How did you make that button? My code didn’t work like that…
@saandesh32
@saandesh32 5 лет назад
It's easier to use querySelector but get getElementsByClassName maybe faster in terms of compilation ... maybe useful :)
@pumpkinqueen1028
@pumpkinqueen1028 3 года назад
7:58 Why no female names under the examples?! ;)
@two-zero
@two-zero 5 лет назад
Thanks for this tutorial :D
@hieuchu7115
@hieuchu7115 Год назад
Good video! Can you please tell me the name of the vscode theme? I love
@Joeff-
@Joeff- 3 года назад
I''ll repeat this later, a little bit dizzy hahaha
@g4tech780
@g4tech780 3 года назад
Hi userlist.appendChild is not function at htmlbutton element
@shaik_mohammedimran
@shaik_mohammedimran 5 лет назад
Hi, thanks for this video, May I know, which theme & font family r u using in ur vscode?
2 года назад
Awesome videos. Made me get your course to learn more and more. Thanks a lot for the great work.
@frankc.astle214
@frankc.astle214 4 года назад
Thank you, I really needed this!!!! You rock!!!!
@lakshyachopra_
@lakshyachopra_ 4 года назад
Best Javascript Tutorial👏👏
@lukasbingemer6898
@lukasbingemer6898 3 года назад
This video was very fast. in my opinion a little bit to fast.
@defi-fundscryptoandtech2024
it was an amazing ride with you ser, more of the projecct based tutorial all the way
@anil_kapse
@anil_kapse 3 года назад
What about dom manipulation before rendering or dom parsing or dom loading. Is it possible?
@jatinmehra5705
@jatinmehra5705 3 года назад
Can you give the audio name attached at beginning of video??
@feruzteame8854
@feruzteame8854 4 года назад
You are great !
@nethmiwelgamvila
@nethmiwelgamvila 3 года назад
Youre the most funny guy I ever see in this youtube 😎 and also a good youtuber good teacher ❤️
@tnl8758
@tnl8758 4 года назад
Ugh...the ending is tricky, but I'll rewatch it till it becomes natural. Great teaching, regardless!
@bumbledex
@bumbledex 4 года назад
Still looking the link you said you were going to put in the description below for all the actions you can do with addEventListener
@usmanzai8748
@usmanzai8748 4 года назад
console.log('you are great');
@guccigreatness4925
@guccigreatness4925 4 года назад
name of intro song ? also i like all of your vids. always gr8 content
@matheusyamasato5662
@matheusyamasato5662 3 года назад
Thanks!! Your videos are awesome! I've been learning a lot with u! Greetings from Brazil
@achintyaeeshan3069
@achintyaeeshan3069 4 года назад
which vscode theme and font are you using dude ?
@aminozuur
@aminozuur 3 года назад
Thank You! Holy cow, you made me feel powerful making a simple to do list :). Keep it up brother.
@samnax316
@samnax316 4 года назад
I cried for couple of minutes, because you didnt put the link in discription for the collection of events as you mentioned in the video
@n.dclothing8529
@n.dclothing8529 2 года назад
Yo dude the way you explain things is amazing don't stop your videos! I'm going to refer your page to all of my dev friends !!
@MuriJaf
@MuriJaf 4 года назад
a big thank yoooooooooouuuuuuuuuuuu
@Izzyrodriguez2011
@Izzyrodriguez2011 3 года назад
the text.style at 3:50 doesn't work for me for some reason :(
@usajimary
@usajimary 3 года назад
Where the hell did Java script come from??
@josefino401
@josefino401 4 года назад
thanks men I dont speak english but you explain very clearly
@bhavikakapadia2462
@bhavikakapadia2462 5 лет назад
Thank you for making javascript tutorial. Learing a lot
@clarencebungay422
@clarencebungay422 2 года назад
Why you used function inside the for loop?
@kylianlenoir5719
@kylianlenoir5719 4 года назад
Text.style is not working at all for me, what do i need to do to get it working??
Далее
The Creative Javascript Course Trailer
2:01
Просмотров 173 тыс.
When Goalkeepers Get Bored 🤯 #3
00:27
Просмотров 1,5 млн
Обменялись песнями с POLI
00:18
Просмотров 286 тыс.
Learn DOM Manipulation In 18 Minutes
18:37
Просмотров 1 млн
DOM API - JavaScript Tutorial for beginners
42:17
Просмотров 34 тыс.
Top 10 Javascript One Liners YOU MUST KNOW!
14:16
Просмотров 194 тыс.
Javascript Arrays | Javascript Tutorial For Beginners
11:25
Learn JavaScript DOM Traversal In 15 Minutes
14:44
Просмотров 225 тыс.
JavaScript DOM Crash Course - Part 1
39:01
Просмотров 1,2 млн
When Goalkeepers Get Bored 🤯 #3
00:27
Просмотров 1,5 млн