Is there a way to change the button label on a bootstrap toggle switch/button before and after clicking it without using jquery or javascript? It seems like there should be a feature in bootstrap for this.
Initially, the label reads: Show list
After clicking, the label should display as: Hide list
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4e2c21213a3d3a3c2f3e0e7b607e607c">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container d-flex mb-4 p-4">
<div class="btn-1 m-2">
<input type="checkbox" class="btn-check"
id="btn-check" autocomplete="off">
<label class="btn btn-primary" for="btn-check">
Show list
</label>
</div>