• Sunday , 10 December 2017

JavaScript Tutorial for Beginners – 29 – getElementsByClassName

Code Canyon

In this video we will discuss the getElementsByClassName method.

Javascript code: http://pastebin.com/0bNp7FZt
HTML code: http://pastebin.com/5Jbsz2rS

Original source

3d Ocean

Related Posts


  1. Landbergaren Videos
    November 29, 2017 at 12:45

    I dont understand why you have to type a variable to the last row. This variable is not beeing called anywhere anyway.
    var addThem = paragraph[2].innerHTML = firstParaText + secondParaText ;
    Why cant it be just like this
    paragraph[2].innerHTML = firstParaText + secondParaText ;

    Its so distracting. I hope the answer comes in a lesson soon after this 🙂

  2. M Azis
    November 29, 2017 at 12:45

    What about without button, how to do that?

  3. Hande T.
    November 29, 2017 at 12:45

    Man, you are the best! You are doing your job very good and respect us! Really appreciate it!

  4. william ayoub
    November 29, 2017 at 12:45

    I tried it without putting the [1] or [2] but it didn't work.why?

  5. Ammar Sadeq
    November 29, 2017 at 12:45

    quick question: can it be done using for loop as explained previously

  6. John Wu
    November 29, 2017 at 12:45

    Question: When I was trying to change the style for a class, I coded "text[1].style.", but after I hit "." after "style", all those functions under style didn't come out, instead there were bunch of warnings saying "intellisense was unable to determine an accurate completion list for this expression". Can you help me with this?

  7. Joey caridi
    November 29, 2017 at 12:45

    LOL I got a html ad

  8. Robert Reimann
    November 29, 2017 at 12:45

    A short question. Does it matter if you use " or ' ?

  9. arun kaushik
    November 29, 2017 at 12:45


  10. MrRedhawk16
    November 29, 2017 at 12:45

    Nice Excited for the next lesson keep up the good work !

Leave A Comment

You must be logged in to post a comment.