I have this code of 4 buttons with the first one has class "active". I want to remove class "active" and add it to other buttons when clicking using jQuery traversing.
https://jsfiddle.net/f93v47dh/
<div class="row">
<div class="col-12">
<button type="button" class="btn active shadow-none" id="item-">item 1</button>
<button type="button" id="item-2" class="btn shadow-none">item 2</button>
</div>
<div class="col-12">
<button type="button" id="item-3" class="btn shadow-none">item 3</button>
<button type="button" id="item-4" class="btn shadow-none">item 4</button>
</div>
</div>