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

9th Nov 2018, 9:12 PM
BeebAwesome
BeebAwesome - avatar
4 Réponses
+ 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.
9th Nov 2018, 9:38 PM
John Wells
John Wells - avatar
10th Nov 2018, 12:20 AM
Calviղ
Calviղ - avatar
+ 2
Here Is a code, You will need to know Basic Javascript, https://code.sololearn.com/W7y3lLUp28L5/?ref=app
23rd Nov 2018, 2:14 AM
Potato Hacker
Potato Hacker - avatar
0
You need JS for that. You can take the JS course here.
9th Nov 2018, 9:18 PM
ReimarPB
ReimarPB - avatar