Skip to content
Advertisement

How can I fix this button

When I click on any button it shows same first button output. How can I fix it. I want it be different when I click on different button it should display same output that button has. I want it to be on my website.

JavaScript
JavaScript
JavaScript

Advertisement

Answer

Using nextElementSibling:

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement