0
I’m using the following code:
$("#divPrincipal").prepend('<p class="text-success">Você terá aproximadamente ' + resultado + ' plantas </p>');
The idea was to click on a button and it will print the line with the result in my HTML form, however if the user keeps clicking on the button he will be replicating this line. Is there any way to overwrite the line, or write the line once, or print the result otherwise?
Boy, am I dumb
– Rodolfo Oliveira
Sometimes the solution is simpler than you think ;)
– bfavaretto