I have inputfields that calculates and shows in an ! But when I want to go to the next page (to do a new calculation) my code only clears the inputfields and not the label where de result is shown. The code I have is shown down under..
<td>
<label class="o-money__totalsum" type="number" onfocus="this.value=''" step="1" name="total-<?php echo $counter;?>" id="total-<?php echo $counter;?>">0 SEK
</label>
</td>
function resetFields(){
$("o-exercise__button").click(function(){
$(".o-money__answer").val(''); <- my inputfields
$(".o-money__totalsum").val(''); <- the label!
});
}