I am trying to remove the bootstrap active class from the button group.
Here's the html code
<div class="btn-group rounded-pill" data-toggle="buttons">
<label class="btn btn-outline-secondary btn-md active rounded-left">
<input type="radio" name="options" id="option1" value="cadpaymentform" checked> <b>Purchase</b>
</label>
<label class="btn btn-outline-secondary rounded-right btn-md">
<input type="radio" name="options" id="option2" value="license"> <b>My license key</b>
</label>
</div>
this is the jquery code I have tried, it removed the active class but when the page is fully loaded it again add active class.
$('.btn-group').find('.btn-outline-secondary').removeClass('active');