+ 1

JavaScript style.display. Element not showing after a specific number of elements being shown/hide.

I have multiple buttons to show specific pieces of information. All elements except the one are hidden (display="none"). After a specific number of elements are hidden, the last piece of element won't be shown when the button that it is connected clicked. When I completely wipe out a different functions, it works perfectly. I'm not using onclick attribute. Using addEventListener. Within each evetlistener, I'm setting what I want hidden and shown. Is there a specific number that JavaScript can handle this? https://code.sololearn.com/W4ytxSbtf35I/?ref=app

13th Jul 2022, 6:58 PM
WolfieElite
WolfieElite - avatar
3 Answers
+ 2
Could you please show us the code with the issue? Maybe it is just a typo. Also, for showing data, have you considered the html tag "details"?
13th Jul 2022, 7:02 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 1
Can you share your code from the code playground? Then someone can have a better look and help.
13th Jul 2022, 7:02 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
As I know there is no limit, please post your code, so we can check it.
13th Jul 2022, 7:05 PM
PanicS
PanicS - avatar