I have a code, where I want to display the result of a sum without reloading the page. As an example, I've already set initial values in the fields.
* Problem: I have a div
with id resultado
that has a css to hide it in the initial state. Clicking on the calculate button has a function to display div
.
There is another function that will take the values of the fields input
and display the result within div
with id
normal
. This div
is within div
with id
resultado
.
But I do not know why div
with resultado
is not being displayed. Only the div
with id
normal
with the result. If I remove the function that makes the sum and click the div
button with id resultado
is normally displayed.