I have a badge that is the child attribute of a button, like this:
<button id="equipeum" class="btn btn-primary" type="button"><span id ="pontoum"class="badge"></span></button>
In this case the badge would be a child element of the button (correct me if it is wrong), finally, my problem is to be able to change the values of the two, because when I change the value of button
"equipeum" via JS, the child element badge
is lost.