0

Can you help me?

https://code.sololearn.com/WOVI52QYpBNi/?ref=app I would like to solve this so that I do not have to create dozens of buttons for a single function. My question makes more sense in the code.

20th Aug 2020, 6:04 AM
Cam UOR
Cam UOR - avatar
4 odpowiedzi
+ 5
Make your show() function accepts a parameter. The argument is the instance. the assignment should not be destructured from nothing, it should be the name property of the instance. Here is a fix for you: https://code.sololearn.com/Wxm3tnGN5vud/?ref=app
20th Aug 2020, 6:12 AM
Gordon
Gordon - avatar
+ 2
Id is something uniqe but You selected them with another id name in js.
20th Aug 2020, 6:09 AM
gitbanaei
gitbanaei - avatar
+ 1
Use iterators for this type of function
20th Aug 2020, 6:25 AM
Divya Mohan
Divya Mohan - avatar
0
Thank you!
20th Aug 2020, 11:03 AM
Cam UOR
Cam UOR - avatar