0
How do I make text appear when I click a button? [HTML]
I am doing a project in which I need a paragraph to appear once a button is clicked. The problem is, I'm not sure how. Is there a way? Will I need to do a bit of JS coding as well? Thanks, Beeb
4 Answers
+ 5
If you don't want it to go away or change, you can get away with one statement as shown here:
https://code.sololearn.com/WDX17PcFw49v
It looks up the paragraph by Id and sets it's display. Being run when the button is clicked.
+ 2
Can be done using CSS only
https://code.sololearn.com/WkeM7P3Mx6p3/?ref=app
+ 2
Here Is a code,
You will need to know Basic Javascript,
https://code.sololearn.com/W7y3lLUp28L5/?ref=app
0
You need JS for that. You can take the JS course here.