How can I clear/hide elements when a button is clicked, then make something else appear?

How do I do this successfully?

You are viewing a single comment. View All

@DracoMagnus You could make several buttons and each button has an onclick with that function, and an id that will make it hide. Then for a randomly chosen string, you can use JS to randomly pick a string out of an array.