0

The code below extracts the name of the button 'CLICK'..someone help on how to place that word to an existing element,eg <p>

https://code.sololearn.com/WWk6O8qSUTSL/?ref=app

31st Dec 2017, 11:09 PM
mwas el khaleesi
mwas el khaleesi - avatar
2 odpowiedzi
+ 2
put this inside the function $("p").text($(this).text()); and obviously create a p element in the document
31st Dec 2017, 11:36 PM
Luca Marseglia
Luca Marseglia - avatar
0
waaaoh! that was helpful, now is there any way to make it only append the text once??? when u look that code, it's adding the value each time I click,I want it to add once,
1st Jan 2018, 7:43 AM
mwas el khaleesi
mwas el khaleesi - avatar