Buttons and element answers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Buttons and element answers

Share how to position <p> elements right next a button so that clicking the button reveals the answer just to the right of the button.

4th May 2018, 2:21 AM
Stan Berger
Stan Berger - avatar
2 Answers
+ 3
I think you'll need js for that.
4th May 2018, 2:31 AM
Josh Ezeh
Josh Ezeh - avatar
0
Cool !! That is a bit more complicated than I thought! I was using onclick="??" with a <p id="??">
4th May 2018, 3:16 AM
Stan Berger
Stan Berger - avatar