0

Showing ~ getElementByClassName is not a function. what is this? gow to solve??

19th Jun 2021, 5:14 AM
aslam Sidheeq
2 ответов
+ 4
It's `elements` not `element`. You are missing 's'. It's plural because the method does not return a single HTMLElement it returns an array-like object containing one or more elements.
19th Jun 2021, 5:20 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 2
Oh right.. thanks
19th Jun 2021, 5:22 AM
aslam Sidheeq