gilbert189 — 11/25/2022, 7:12:52 AM

Do you prefer using the getElementsBy... functions or querySelector?

For some reason I prefer querySelector lately

♥ 2 ↩ 1 💬 4 comments

comments

june_:

getElementsBy functions because i really hate the little stuff you have to add for selecting things with querySelector (#id and .class specifically) for some reason

11/25/2022, 12:50:50 PM
gilbert189:

aren’t those the exact same as CSS?

11/25/2022, 1:07:11 PM
pkmnq:

getElementsBy, but I think I’ll switch to querySelector the next time I’m doing something

11/25/2022, 9:36:20 AM
lily:

querySelector

11/25/2022, 8:30:30 AM