Finding Elements In The DOM Using querySelector | KIRUPA

As you saw in the JavaScript, the Browser, and the DOM tutorial, your DOM is nothing more than a tree-like structure made up of all the elements that exist in your HTML document:


This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/finding_elements_dom_using_querySelector.htm

I think for Immediate child we need to use β€˜>’ instead of β€˜+’

Good catch! I just updated it. Thanks for pointing it out :slight_smile:

Thank you for this post, it’s been extremely helpful!

Glad you liked it, Eugenia :grinning:

Great explanation! Helped me to get started. You showed it in a simple way. Nice!

2 Likes