+ 2

Why won’t this work?

why won’t the JS in this code work? https://code.sololearn.com/WmB29DFQFYR0/?ref=app

19th Aug 2023, 12:34 AM
Defying Gravity
Defying Gravity - avatar
3 RĂ©ponses
+ 2
In html, every value passed to the loadNext function should be in single quotes, loadNext('#one', '#two') In js should use document.querySelector instead document.getElementById x should display 'block' and e should display 'none' Missing fifth child background color in css https://code.sololearn.com/W58eXorJ60zf/?ref=app
19th Aug 2023, 4:13 AM
ODLNT
ODLNT - avatar
19th Aug 2023, 4:00 AM
Darpan kesharwani🇼🇳[Inactive📚]
Darpan kesharwani🇼🇳[Inactive📚] - avatar
+ 1
You can't pass the element through their id selector.
19th Aug 2023, 2:26 AM
zexu knub
zexu knub - avatar