¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
The code below extracts the name of the button 'CLICK'..someone help on how to place that word to an existing element,eg <p>
2 Respuestas
+ 2
put this inside the function
$("p").text($(this).text());
and obviously create a p element in the document
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,