Skip to content Skip to sidebar Skip to footer

Want Buttons Be Displayed Only When Clicking On Another Button With Js

I have updated my question. So, I formulate again my problem: I have a set of buttons ('Backgrounds', 'Ears', 'Hair', 'Eyes', 'Mouth', 'Legs', 'Neck', 'Accessories'). And I want th

Solution 1:

I think you want 'none' not 'hide'

if (x.style.display === "none")

Plain js is display block or none. Or, visibility hidden or visible.

Post a Comment for "Want Buttons Be Displayed Only When Clicking On Another Button With Js"