0
How can I make a button input a character into a paragraph using HTML, CSS and JS
7 odpowiedzi
+ 4
Firstly, please share your own attempt
+ 2
Rex Cherish Okoha You can just add an eventlistener on the button that would append a character to the text element you want. But listen to Sakshi (Less Active) and the code I linked if you need additional help.
+ 1
What do you mean by button input? Do you have a link to some code where you are attempting this? See below if so:
https://code.sololearn.com/Wek0V1MyIR2r/?ref=app
+ 1
Thank you Justice
+ 1
Rex Cherish Okoha it's always cleaner to use a separate js, in fact that's you will be doing in real life, so make a habit
0
What I mean by "button input" is to make a button write a character on the paragraph