3 ms·
Interesting how the list doesn't begin with use of querySelector or getElementById. I know these sites are made by experts who aren't necessarily thinking abou
by Waterluvian 7y ago
Interesting how the list doesn't begin with use of querySelector or getElementById.
I know these sites are made by experts who aren't necessarily thinking about beginners, but a foundation, even a small one, is super valuable.
- hk__2 7y agoThe list is in alphabetical order, so “Select an element or list of elements” is down with the other S’s: https://htmldom.dev/select-an-element-or-list-of-elements https://htmldom.dev/select-an-element-or-list-of-elements
- emilfihlman 7y agoThat's a big oversight, the list should be in the order of learning.
- diggan 7y ago> but a foundation, even a small one, is super valuable Well, I mean, first example is "ele.classList.add('class-name');", beginner or not, you gotta understand where `el` is coming from. Seems like a big oversight to have incomplete samples, even from the first example.