<label>
Auto zoom
<input type="checkbox" class="js-switch" id="autoZoom" data-switchery="true" style="display: none;">
<span class="switchery switchery-small" style="box-shadow: rgb(223, 223, 223) 0px 0px 0px 0px inset; border-color: rgb(223, 223, 223); background-color: rgb(255, 255, 255); transition: border 0.4s, box-shadow 0.4s;">
<small style="left: 0px; transition: background-color 0.4s, left 0.2s;"></small>
</span>
</label>
I have this code above, I want to replace "Auto zoom" to "Test", how do I do that?
$("#div label:contains('Auto zoom')").text("Test");
I tried using the code above, which is obviously not working, it will remove the input type checkbox behind too...