Javascript Dom Manipulation | Javascript Tutorial For Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • 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...

ความคิดเห็น • 236

  • @developedbyed
    @developedbyed  5 ปีที่แล้ว +135

    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 ปีที่แล้ว +2

      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 ปีที่แล้ว +25

    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!

  • @erdemoz2187
    @erdemoz2187 4 ปีที่แล้ว +18

    You're so good! You've made JS so easy and fun to learn!

  • @gloriareyes6556
    @gloriareyes6556 4 ปีที่แล้ว +32

    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.

  • @thekizmerr6827
    @thekizmerr6827 3 ปีที่แล้ว +7

    This man deserves a beer. Finally got the hang of it! Thanks :)

  • @Tenly2009
    @Tenly2009 ปีที่แล้ว +2

    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… 🙄

  • @mzDododeejay
    @mzDododeejay 5 ปีที่แล้ว +27

    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 ปีที่แล้ว +1

      @@johncena-li1bl man. he is literally commenting.

  • @harryjamesdesign
    @harryjamesdesign 2 ปีที่แล้ว +6

    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!

  • @martinmclean5985
    @martinmclean5985 4 ปีที่แล้ว +7

    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.

  • @ss_GOAT
    @ss_GOAT 5 ปีที่แล้ว +1

    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.

  • @adityarai9146
    @adityarai9146 3 ปีที่แล้ว +1

    Uncaught TypeError: itemList.appendChild is not a function
    at HTMLButtonElement. (app.js:18)
    (anonymous) @ app.js:18 plz correct this one

  • @tannerbarcelos6880
    @tannerbarcelos6880 5 ปีที่แล้ว +3

    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!

  • @bezyking6213
    @bezyking6213 4 ปีที่แล้ว +1

    why classlist.add does not work

  • @Me-og5iy
    @Me-og5iy 4 ปีที่แล้ว +4

    7:22 next tutorial: how can you land ur mouse on the button so fast?

  • @mujtabamujeeb786
    @mujtabamujeeb786 4 ปีที่แล้ว +2

    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 =>

  • @HammerBummer-ro9ik
    @HammerBummer-ro9ik 2 หลายเดือนก่อน +1

    Useful Course Developedbyed

  • @Bhuvan_pro_XD_
    @Bhuvan_pro_XD_ 3 ปีที่แล้ว +1

    sir this is not working in windows 7 but why

  • @soulfen555
    @soulfen555 5 ปีที่แล้ว +2

    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.

  • @MrBaysah
    @MrBaysah 5 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

      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

  • @nagasesanagasesa7026
    @nagasesanagasesa7026 4 ปีที่แล้ว +1

    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

  • @guardianguardian7133
    @guardianguardian7133 4 ปีที่แล้ว +4

    Perfect way to learn what you really will need, this course is awesome

  • @bigk2367
    @bigk2367 2 ปีที่แล้ว +1

    omg it's hard for me!!!!!!!! :(

  • @Ninja-cn6kj
    @Ninja-cn6kj 3 ปีที่แล้ว +2

    ur voice is so soothing we feel relaxed while studying

  • @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";
    });
    }

  • @aimanjaafar457
    @aimanjaafar457 5 ปีที่แล้ว +1

    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

  • @wasifnadeem6209
    @wasifnadeem6209 3 ปีที่แล้ว

    Uncaught TypeError: userList.appendChild is not a function
    at HTMLButtonElement.
    I'm getting this error bro... 😢

  • @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.

  • @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?

  • @GauthamKrishnan99
    @GauthamKrishnan99 2 ปีที่แล้ว

    Stuff went from 0-100 real fast with this video! xD

  • @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.

  • @wadeatamim3230
    @wadeatamim3230 5 ปีที่แล้ว +2

    Watched the video => Like => subscribed . You have high teaching skills, thanks.

  • @Wailky2008
    @Wailky2008 3 หลายเดือนก่อน

    More than half of the code just doesnt want to work....

  • @louie_sevilla
    @louie_sevilla 5 ปีที่แล้ว +1

    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

  • @abhinayganu
    @abhinayganu ปีที่แล้ว

    I am crazy in js dom tutorail problems I have understood that Developedbyed is very easy way...

  • @lordpain007
    @lordpain007 4 ปีที่แล้ว

    Javascript Tutorial For Beginners .
    nop not for beginners

  • @michaelkounanis3970
    @michaelkounanis3970 3 ปีที่แล้ว

    Most functions don't work. I tried console log , It works though. Can you please help me?

  • @mubasharahmad8628
    @mubasharahmad8628 4 ปีที่แล้ว +1

    Thanks Dev Sir; you really clreared my all concept about JS,thnaks alot sir.

  • @shashankp5236
    @shashankp5236 2 ปีที่แล้ว

    Bro struggles with variable and class names. That's how you know he's legit

  • @lakshyachopra_
    @lakshyachopra_ 4 ปีที่แล้ว +1

    Best Javascript Tutorial👏👏

  • @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.

  • @johabib8354
    @johabib8354 4 ปีที่แล้ว

    The command text.style.color is not applying neither in notepad nor in visual studio code

  • @tamiriscristine4604
    @tamiriscristine4604 4 ปีที่แล้ว +1

    thank you friend, it was very helpful for me :)

  • @saeedkhan4927
    @saeedkhan4927 3 ปีที่แล้ว

    Why is this not working for me? I have followed along step by step?

  • @frankc.astle214
    @frankc.astle214 4 ปีที่แล้ว +2

    Thank you, I really needed this!!!! You rock!!!!

  • @kenichihilversum5589
    @kenichihilversum5589 4 ปีที่แล้ว

    Hi dev my java won't read addEventListener can you help me?

  • @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?

  • @g4tech780
    @g4tech780 3 ปีที่แล้ว

    Hi userlist.appendChild is not function at htmlbutton element

  • @readingplaylists495
    @readingplaylists495 3 ปีที่แล้ว +1

    I love how you explain everything slowly and don't leave anything out. Great!

  • @Joeff-
    @Joeff- 3 ปีที่แล้ว +1

    I''ll repeat this later, a little bit dizzy hahaha

  • @themrblueshow
    @themrblueshow 2 ปีที่แล้ว

    How did you make that button? My code didn’t work like that…

  • @zg1370
    @zg1370 4 ปีที่แล้ว +1

    thank you so so much! great video and your explanation is clear and easy to understand :)

  • @usmanzai8748
    @usmanzai8748 4 ปีที่แล้ว +1

    console.log('you are great');

  • @pumpkinqueen1028
    @pumpkinqueen1028 3 ปีที่แล้ว

    7:58 Why no female names under the examples?! ;)

  • @Tuna-wt3eh
    @Tuna-wt3eh หลายเดือนก่อน

    Pewdiepie if he studied computer science lol

  • @hieuchu7115
    @hieuchu7115 ปีที่แล้ว

    Good video! Can you please tell me the name of the vscode theme? I love

  • @adityarai9146
    @adityarai9146 3 ปีที่แล้ว

    plz someone write code of remove element plz i am trying since morning

  • @lukasbingemer6898
    @lukasbingemer6898 3 ปีที่แล้ว

    This video was very fast. in my opinion a little bit to fast.

  • @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!

  • @jatinmehra5705
    @jatinmehra5705 3 ปีที่แล้ว

    Can you give the audio name attached at beginning of video??

  • @achintyaeeshan3069
    @achintyaeeshan3069 4 ปีที่แล้ว

    which vscode theme and font are you using dude ?

  • @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.

  • @usajimary
    @usajimary 3 ปีที่แล้ว

    Where the hell did Java script come from??

  • @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.

  • @joeyng1282
    @joeyng1282 3 ปีที่แล้ว

    "Beginners"?? You meant "Intermediates"?

  • @Izzyrodriguez2011
    @Izzyrodriguez2011 3 ปีที่แล้ว

    the text.style at 3:50 doesn't work for me for some reason :(

  • @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 :)

  • @clarencebungay422
    @clarencebungay422 2 ปีที่แล้ว

    Why you used function inside the for loop?

  • @shaik_mohammedimran
    @shaik_mohammedimran 5 ปีที่แล้ว +1

    Hi, thanks for this video,
    May I know, which theme & font family r u using in ur vscode?

  • @afolabimojeed
    @afolabimojeed 10 หลายเดือนก่อน

    I have been learning JavaScript for a while now without a proper understanding, Your videos give me hope. thanks

  • @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!

  • @Heaven_citiz3n
    @Heaven_citiz3n 2 ปีที่แล้ว

    coding is hard af

  • @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.

  • @joshuajoshua334
    @joshuajoshua334 ปีที่แล้ว

    You are the best teacher in the world.

  • @dianao.moremissd
    @dianao.moremissd 2 ปีที่แล้ว

    Thank you for this video!!

  • @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.

  • @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 😉

  • @saandesh32
    @saandesh32 5 ปีที่แล้ว

    It's easier to use querySelector but get getElementsByClassName maybe faster in terms of compilation ... maybe useful :)

  • @strategistaow3520
    @strategistaow3520 8 หลายเดือนก่อน

    10:46 this this didn`t worked on me

  • @tyoart
    @tyoart ปีที่แล้ว

    Aku pusing..

  • @eocritical
    @eocritical 3 ปีที่แล้ว

    5:01, did you've said "Meu deus" ?

  • @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?

  • @bhavikakapadia2462
    @bhavikakapadia2462 5 ปีที่แล้ว +1

    Thank you for making javascript tutorial. Learing a lot

  • @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

  • @Me-og5iy
    @Me-og5iy 4 ปีที่แล้ว +1

    7:22 idk anything but that needs talent!

  •  2 ปีที่แล้ว

    Awesome videos. Made me get your course to learn more and more. Thanks a lot for the great work.

  • @madhu_codes
    @madhu_codes 3 ปีที่แล้ว

    How to create a class using dom

  • @gavingonzalez7174
    @gavingonzalez7174 5 ปีที่แล้ว +1

    Can I say I learned js after I get though this course

  • @anil_kapse
    @anil_kapse 3 ปีที่แล้ว

    What about dom manipulation before rendering or dom parsing or dom loading.
    Is it possible?

  • @Tuna-wt3eh
    @Tuna-wt3eh หลายเดือนก่อน

    bro looks like pewdiepie

  • @alwinvillero4404
    @alwinvillero4404 4 ปีที่แล้ว

    Ed why do you look weird here.....

  • @deansofic914
    @deansofic914 หลายเดือนก่อน

    useless,unsubscribing.

  • @dom1437
    @dom1437 2 ปีที่แล้ว

    Hey now, why gon do that for?

  • @defi-fundscryptoandtech2024
    @defi-fundscryptoandtech2024 ปีที่แล้ว

    it was an amazing ride with you ser, more of the projecct based tutorial all the way

  • @tnl8758
    @tnl8758 4 ปีที่แล้ว

    Ugh...the ending is tricky, but I'll rewatch it till it becomes natural. Great teaching, regardless!

  • @matheusyamasato5662
    @matheusyamasato5662 3 ปีที่แล้ว

    Thanks!! Your videos are awesome! I've been learning a lot with u! Greetings from Brazil

  • @josefino401
    @josefino401 4 ปีที่แล้ว

    thanks men I dont speak english but you explain very clearly

  • @samoh6084
    @samoh6084 3 ปีที่แล้ว

    I really like this dude.

  • @nethmiwelgamvila
    @nethmiwelgamvila 3 ปีที่แล้ว

    Youre the most funny guy I ever see in this youtube 😎 and also a good youtuber good teacher ❤️

  • @sheheryarqazi1006
    @sheheryarqazi1006 3 ปีที่แล้ว

    what is the intro music

  • @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