HTML5 Tutorial - 26 - querySelectorAll

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
8,227
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 26, 2011

Visit my website at http://thenewboston.com for all of my videos!
My Podcast - http://www.justin.tv/thenewboston
My Second YouTube Channel - http://www.youtube.com/thenewbostontv

  • likes, 3 dislikes

Link to this comment:

Share to:

Top Comments

  • hey boston

    wheres UDK ???

  • he got 5 views in a minute...i haven't got that much on any of my videos...combnied

see all

All Comments (44)

Sign In or Sign Up now to post a comment!
  • Like Bucky said, you can put any css selector in querySelector. Some tests seem to suggest that if you want to address an item based on its ID, it's speed-wise better to opt for getElementById. querySelector seems more apt for selectors like "#tuna > li". Also, an ID should really only be used for one object; classes for shared attributes.

    Love the vids Bucky, thank you!

  • "onclick,no onLick, that is disgusting..." :D

  • Please stop teaching this awful way of event handling to the kids. What happened to addEventListener and event delagation. I understand this is a basic tutorial but still,let's just stay out of trouble.

    Otherwise nice tutorials although too basic for me...

  • @Nahiyan12 umm its not an element its an event in java script one of them is onclick there is also onmousemove onmousedown onmouseover and shit load more

  • you could also do the for loop like this:

    for(var i in list) { list[i].onclick=talk; }

  • I didn't know that there is an event named 'onlick' lol

  • good tutorial, thanks bucky !

  • Great Video, Bucky!

  • @99LethalEuphoria99 No there is a foreach loop for JavaScript too.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more