There's a label and an input element.
<div id="mydiv" class="my-div-class"><label id="id-label">abc<input type="text" id="id-text"></label></div>
Now I want to change the label's text (E.g. from abc to efg)
This doesn't change it:
$('#id-label').html('efg');
And this makes the input disappear:
$('#id-label').html('efg');
$('#id-label').html('efg');
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div id="mydiv" class="my-div-class"><label id="id-label">abc<input type="text" id="id-text"></label></div>