0

How can I make a button input a character into a paragraph using HTML, CSS and JS

3rd Jun 2023, 11:30 AM
Rex Cherish Okoha
7 Respostas
+ 4
Firstly, please share your own attempt
3rd Jun 2023, 12:17 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 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.
3rd Jun 2023, 12:23 PM
Justice
Justice - avatar
+ 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
3rd Jun 2023, 11:42 AM
Justice
Justice - avatar
+ 1
Thank you Justice
3rd Jun 2023, 12:28 PM
Rex Cherish Okoha
+ 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
5th Jun 2023, 10:02 AM
Sobi Mohammed
Sobi Mohammed - avatar
0
What I mean by "button input" is to make a button write a character on the paragraph
3rd Jun 2023, 12:10 PM
Rex Cherish Okoha
3rd Jun 2023, 12:28 PM
Rex Cherish Okoha