JavaScript beginner tutorial 24 - referencing elements in JavaScript

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ • 70

  • @emekaaugustine9362
    @emekaaugustine9362 6 років тому +1

    Some years ago when i was having some challenges on understanding the concept of Javascript, this channel solved my problem. I decided to trace you back to say thank you. God bless you and keep the good work.

  • @lenardsimmons-research
    @lenardsimmons-research 7 років тому +1

    Quentin, it's amazing how easy you make learning this Javascript stuff. I'm truly starting to understand JS on a whole new level and no longer have a fear of trying to produce my own code/apps. As I stated on some of your other JS tutorials, I'm learning more from this free course then I have learned from some paid courses I've taken. You are God sent. Bless you brother Watt

  • @CASMANWHAT
    @CASMANWHAT 10 років тому +10

    FINALLY! i've been going through every JavaScript tutorial wondering to myself WHERE THE FUCK AM I GOING TO USE THIS STUFF?! now it gets exciting.

    • @zulflbeatz
      @zulflbeatz 10 років тому +2

      me too..

    • @hasratsabit7116
      @hasratsabit7116 9 років тому

      +CASMANWHAT You gotta watch some website building toturials where they use javascript. You will see how they use everything you learned here in building the website.

    • @El_ii
      @El_ii 7 років тому

      OMG me too... :D

  • @alartlart
    @alartlart 6 років тому

    You're a legend. I've shared your tutorials on Twitter for others who are struggling like me. Honestly mate you've helped me so much with your fantastic content. Plus you make learning coding kind of fun. I tend to sit and chain your videos.

  • @everettmusicdojo
    @everettmusicdojo 6 років тому

    One step closer to coding mastery. Thanks, Quentin!

  • @obu69
    @obu69 8 років тому

    took me more than 8 years to learn this. Thanks Thats an awesome tutorials

  • @potatoehead64
    @potatoehead64 11 років тому +1

    I've been followings these on and off for a little while. You teach at a good tempo, especially for an old boy like me!

  • @yoitired
    @yoitired 9 років тому

    I like how you explain things very clearly and methodically, really helps, thanks!

  • @froggleberry
    @froggleberry 9 років тому +10

    Tutorial.Quality.ThumbsUp
    document.write("cheers Quentin");

  • @jdr2.paradigmabiblico128
    @jdr2.paradigmabiblico128 8 років тому

    Quintin, thanks! You explain things with so much clarity.

  • @rauldablaing
    @rauldablaing 10 років тому +4

    I'm enjoying your tutorials. Thank you Quentin!

  • @aabbzrr3602
    @aabbzrr3602 8 років тому +2

    love the way you explain mate!! much better than our professor. Keep up the good work :)

  • @wbudd
    @wbudd 8 років тому

    Thank you so much, this video cleared up a lot of what I was confused about (relationship among objects, properties and methods). Terrific!

  • @MrRicardo141
    @MrRicardo141 10 років тому +7

    This Quentin lives in Africa, if he was living here and born here in america, he would be running his own company. Its unfortunate that you might at times feel limited but you over come it. I know javascript, html and php in the future thanks to a guy in Africa.

    • @neonvision1182
      @neonvision1182 9 років тому +1

      MrRicardo141 what? i smell stereotypes.....some parts of Africa aren't as under developed as you may believe. But i also plan to learn all those languages, good job. :D

  • @cornodebruin6345
    @cornodebruin6345 10 років тому +2

    So understandably.
    Thanks for all the Videos man!

  • @MariaFlorenciay
    @MariaFlorenciay 8 років тому

    Wow, you explained it very well! I recommend this tutorial to everybody!

  • @vijay_kalyan143
    @vijay_kalyan143 8 років тому +1

    broo...ur teaching is awsuummm..lovedddd it!!!!!

  • @stoutstaff
    @stoutstaff 6 років тому

    Hi great videos and brilliant teaching, can you let me know when these videos were made please and if they're still up to date ?

  • @widebandrecords902
    @widebandrecords902 9 років тому +2

    Quentin Watt Nice video's, my lil girl somewhat respects Yt for the odd videos but I would like her to get to get more out of UA-cam if so, so I rate your tutorials, they are nice and clear as I am a 20 year programmer myself I can honestly say you have great teaching skills and knowledge, most of all I am happy you keep the language clean but if you were to say something odd I totally understand frustration now n then :)

  • @AlexanderNejadeh
    @AlexanderNejadeh 8 років тому

    Another very informative video...

  • @mreddygi
    @mreddygi 6 років тому

    how can i subscribe twiceeee..this guy is amazing

  • @smozsa
    @smozsa 8 років тому

    Thank you so much for your efforts!

  • @aliarain5955
    @aliarain5955 4 роки тому +1

    Such a great tutor

  • @buzzfuzz3713
    @buzzfuzz3713 7 років тому

    You are really awesome 👍👍 pls pls continue to do these...
    Pls also make c++ tutorial s also and many other languages ..... Pls

  • @ashrafansary757
    @ashrafansary757 8 років тому

    Thank you man! You are just awesome....

  • @hasratsabit7116
    @hasratsabit7116 9 років тому

    Hello Quentin. Thank you very much for everything you do here. It is very generous of you that you put the time and energy to help others. I have a question. Along watching your tutorials, I am also reading the popular javascript and jquery book by Jon Duckett. In his book he says that innerHTML method can cause a lot of security risk to the website. He doesn't recommend this method. What is your thought on that? Thanks

  • @mattnilsen1199
    @mattnilsen1199 8 років тому

    great tutorial Quentin very much helpful after the message i sent you the other day :)

  • @pmburu0
    @pmburu0 8 років тому

    Thank you. Great job

  • @ishanidesai8577
    @ishanidesai8577 8 років тому

    +Quentin Watt Tutorials can the on click event and id function be used in JavaScript

  • @Mooshonov
    @Mooshonov 8 років тому

    This was great!

  • @nvnarendran
    @nvnarendran 11 років тому

    Is innerHTML method only applicable to tags or can it be applied to others..like for example i need add some tags into a div using JS with the help of innerHTML is that possible ?? i know should be trying this out or browsing..but for the sake of others who might have this doubt em asking here..

  • @maxvdberge8181
    @maxvdberge8181 6 років тому

    thx dude! very clear.

  • @CuarzoChannel
    @CuarzoChannel 9 років тому

    hello Mr. Watt.. please let me ask you something:
    is there a way to run 2 event on the same object? one following the other? let me explain my self, if you use the same example of this video but instead of use the event onclick you use the event onmouseover, then it run the function, but when the mouse quit hovering, with the event onmouseout, make the paragraph go back to the original state. i hope i explained my self and would be possible for you to answer me... thank you for your video tutorials...

  • @rmehta26
    @rmehta26 8 років тому

    Hi. Nice videos!!
    I have a query however, which I don't understand the logic behind.
    The code between and and its relation, so basically why did you define id = "para"? How is it co0ordinating with the JS script ?

    • @sublow2104
      @sublow2104 8 років тому +1

      you can define any HTML element to have it's own id. You can call that id whatever you like.
      He could of called it "paragraph" or "para" or "id1", doesn't really make a difference.
      So long as you refer to it in the javascript with the id you have given it.

  • @jonessmith8670
    @jonessmith8670 6 років тому

    Super good!

  • @neonvision1182
    @neonvision1182 9 років тому +2

    If anyone is interested in the oculus rift virtual reality headset there is this 3d web browser called janusvr that is looking for more programmers or game devs to help come expand it so if anybody is interested in helping expand the 3D web check it out. it's easy as 3 steps to have your own 3D space where you can put music, pictures, 3D objects, and animations. just search janusvr on youtube if you want to see what it looks like! i believe this is the next big thing. Also it's multiplayer so you can hop in with friends and search the web together. You can also import your own 3d avatars

  • @jamesplombon5881
    @jamesplombon5881 5 років тому

    I appreciate the tutorial, what if I want to change the ID from text to an image. Is that possible?

    • @jamesplombon5881
      @jamesplombon5881 5 років тому

      after the ID is clicked

    • @QuentinWatt
      @QuentinWatt  5 років тому

      You could simply delete the element and add a text element. It's a bit easier with frameworks like Vue though.

  • @steinadlerx5917
    @steinadlerx5917 11 років тому +1

    nice up man

  • @Knowideer
    @Knowideer 9 років тому +1

    When do we use double and single quotes in javascript?

    • @dominiquestrauss-kahn2509
      @dominiquestrauss-kahn2509 9 років тому +2

      Knowideer As far as I'm aware using double or single quotes in javascript is pure preference.
      There are times in which you need to combine them so they do not overlap.
      I'll show you what I mean by an example:
      var x = "Hello, my name is Kevin" - this is the same as var x = 'Hello, my name is Kevin'.
      However, if you needed to quote something in a string, like so > var x = "He said: "Hello, my name is Kevin"" that wouldn't actually work because the double quotes are conflicting. In this case you need to combine the both like so: "He said: 'Hello, my name is Kevin' "
      You can either use that, or use an escape character like /

  • @hemantsood9579
    @hemantsood9579 6 років тому

    Sir I have question
    "Why we can't add/remove HTML element dynamically on something event like on clicking a button" in JavaScript ??????????

  • @williama-d6
    @williama-d6 9 років тому

    I see you already have point me to the property's

  • @raj4christJGLM
    @raj4christJGLM 8 років тому

    i did what you told but i dont have the smae results. when i click the pragraph it doesnt change and i tried it both ways
    can you please help me

  • @mrgamonify
    @mrgamonify 7 років тому

    what is the difference between functions and method? is it the same? confusing.

  • @souravpodder2402
    @souravpodder2402 8 років тому

    Awesome

  • @brunolucena68
    @brunolucena68 9 років тому

    Hi Quentin, I'm having a problem I can't handle (I've been trying for a few days)... What I'm trying to do is to put the onClick event on a separate .js file. I've been working with a separate script for all your videos, and it worked until now. My HTML code is the same as yours but using src = "mainscript.js" in the script tag. Also, I removed the onclick from the p tag. Now, my JS code is this:
    var para = document.getElementById("para")
    para.onClick = change;
    function change(){
    para.innerHTML = "That tickles";
    }
    Does someone happen to know what the problem is?

    • @soubhagyafukuli2548
      @soubhagyafukuli2548 8 років тому

      ; missing in 1st line

    • @mervinmarias9283
      @mervinmarias9283 Рік тому

      I know you must have solved this problem already, but this is for future viewers who haven't. You attempted to use the function before you defined it. The second line should be moved to after the closing curly brackets, and it should work perfectly.

  • @Kavkazec999Vnature
    @Kavkazec999Vnature 8 років тому

    So in para.innerHTML = "This tickles" the "innerHTML" is property (not a method) is that correct?

    • @QuentinWatt
      @QuentinWatt  8 років тому +3

      Yes indeed. Properties will not have brackets on the end, where as methods usually will.

    • @Kavkazec999Vnature
      @Kavkazec999Vnature 8 років тому

      Thanks for help.

    • @ishanidesai8577
      @ishanidesai8577 8 років тому

      Quentin Watt Tutorials the script you wrote between the p tags is not JavaScript right? Then can the getElementById method also be used to find elements inside JavaScript

  • @saadsouabni
    @saadsouabni 10 років тому +1

    Keep it up :)

  • @AlgyCuber
    @AlgyCuber 9 років тому +2

    How to make onclick event in javascript?

    • @QuentinWatt
      @QuentinWatt  9 років тому

      +navanatee yampunranai You can watch my video on events.
      ua-cam.com/video/CyyWDI9hG7A/v-deo.html

  • @tieeieita2735
    @tieeieita2735 7 років тому

    How do you REVERSE the process where when I click on " That tickles " it will reverse to " click me " ?

  • @romeindara3625
    @romeindara3625 7 років тому

    I think I got a little lost of this one

  • @nabukodonosor777
    @nabukodonosor777 6 років тому

    It was a stupid idea to name the variable "para", since you already have an ID named "para". It's always confusing when people do that in tutorials.

  • @TheCrusaderRabbits
    @TheCrusaderRabbits 6 років тому +1

    This was your worst lesson up to now. Very confusing.

  • @jdr2.paradigmabiblico128
    @jdr2.paradigmabiblico128 8 років тому +1

    Quintin, thanks! You explained things with so much clarity.