why class do not working on 2nd question | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

why class do not working on 2nd question

links of code - COPY THESE URL https://code.sololearn.com/WZY278ZFYMke

1st Jun 2022, 11:20 AM
Praween Gupta
Praween Gupta - avatar
1 ответ
+ 2
Because you have to use querySelecterAll() then perform actions according to current element querySelecterAll returns all the node element of the same class querySelecter just returns first node element item. That's why 2nd option is not working
1st Jun 2022, 3:46 PM
A͢J
A͢J - avatar