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 clicks on the button it will be replicating this line. Is there any way to overwrite the line, or write the line one instead, or print the result in another way?